Skip to content
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

JupyterLab 4 support #397

Merged
merged 3 commits into from
Feb 7, 2023
Merged

JupyterLab 4 support #397

merged 3 commits into from
Feb 7, 2023

Conversation

martinRenou
Copy link
Member

When installing JupyterLab 4 (pip install jupyterlab==4.0.0a33) ipydatagrid would not work. The issue seems to be due to ipydatagrid shipping its own version of Lumino v1 in this case, which is incompatible with JupyterLab 4 which uses Lumino v2. Setting Lumino packages as being "shared" allows us to use the Lumino version JupyterLab provides.

@martinRenou
Copy link
Member Author

CI failures are unrelated: #398

@martinRenou martinRenou force-pushed the jlab4 branch 2 times, most recently from 954fd7d to 0de3dce Compare February 7, 2023 08:33
@jasongrout
Copy link
Member

jasongrout commented Feb 7, 2023

Having lumino packages be shared should be default by the JLab extension compilation process, IIRC: https://github.com/jupyterlab/jupyterlab/blob/cb26f15084af61ec112c46c0246f4e0118be5f2b/builder/src/extensionConfig.ts#L100-L107

If this isn't happening, there's something wrong with the lab extension build process, I think.

@martinRenou
Copy link
Member Author

Indeed, though it seems that ipydatagrid falls into a case where it's not. I'm not understanding exactly why.

Signed-off-by: martinRenou <martin.renou@gmail.com>
This rule was only applying to the old Phosphor grid, it now applies to
both the Phosphor and the Lumino grid

Signed-off-by: martinRenou <martin.renou@gmail.com>
This is supposed to by a dependency (already one), not a dev dependency

Signed-off-by: martinRenou <martin.renou@gmail.com>
@martinRenou
Copy link
Member Author

If this isn't happening, there's something wrong with the lab extension build process, I think.

I will try to find time to look deeper into the JupyterLab builder to see what could go wrong. In the meantime, this looks like a fine workaround.

@martinRenou martinRenou merged commit 6056db4 into jupyter-widgets:main Feb 7, 2023
@martinRenou martinRenou deleted the jlab4 branch February 7, 2023 15:44
@jasongrout
Copy link
Member

Indeed, though it seems that ipydatagrid falls into a case where it's not. I'm not understanding exactly why.

That sounds like a potentially big thing to solve in JLab. Does a test example extension from the jlab extension cookiecutter have this issue, or is it specific to ipywidgets extensions?

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.

3 participants