Skip to content

Add JupyterLab 4.4 compatibility: include package metadata keys #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

logicstar-ai[bot]
Copy link

@logicstar-ai logicstar-ai bot commented Jul 17, 2025

🚀 Fix: Error listing extensions when plotly >=6.1.2 installed

🐞 Root cause

Plotly’s labextension metadata lacked the now-mandatory `packageManager` and `packageName` fields introduced in JupyterLab 4.4, causing a KeyError during `jupyter labextension list`.

🛠️ Fix overview

Overrides `_jupyter_labextension_paths()` to supply the required keys and adds an import-time shim that creates/updates `plotly/labextension/install.json` with the same metadata, ensuring JupyterLab can identify the Python package without crashing.

🧪 Tests

1 / 1 passed
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩

88% test coverage
🟩🟩🟩🟩🟩🟩🟩🟩🟩⬜



🔗 Check LogicStar for full analysis, test output, and trace logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant