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

[JupyterLite] Exception: No module named 'ipykernel.ipkernel' #402

Closed
jtpio opened this issue Mar 26, 2023 · 4 comments · Fixed by #403
Closed

[JupyterLite] Exception: No module named 'ipykernel.ipkernel' #402

jtpio opened this issue Mar 26, 2023 · 4 comments · Fixed by #403
Labels
bug Something isn't working

Comments

@jtpio
Copy link

jtpio commented Mar 26, 2023

Environment Information

This was noticed while testing leafmap on the JupyterLite deployment on https://demo.leafmap.org/lab/index.html.

Description

Trying to import leafmap on a JupyterLite deployment gives the following error:

Exception: No module named 'ipykernel.ipkernel'

image

This is likely related to the change in #396.

What I Did

Visit the demo JupyterLite deployment on https://demo.leafmap.org.

@jtpio jtpio added the bug Something isn't working label Mar 26, 2023
@giswqs giswqs linked a pull request Mar 26, 2023 that will close this issue
@giswqs
Copy link
Member

giswqs commented Mar 26, 2023

@jtpio Thanks for reporting. It seems the ipykernel bug has been fixed upstream by ipywidgets. I will remove the ipykernel import from leafmap.

@stevecwlau
Copy link

@jtpio Thanks for reporting. It seems the ipykernel bug has been fixed upstream by ipywidgets. I will remove the ipykernel import from leafmap.

Hi Dr. Wu. I am also facing some issues with ipykernel in JupyterLite. Here's what I did:
Untitled

@giswqs
Copy link
Member

giswqs commented Aug 4, 2023

This appears to be an ipywidgets/ipykernel issue with JupyterLite. There is not much leafmap can do. I have not use JupyterLite for a while.

I would suggest using Colab or install JupyterLab locally.

@jtpio
Copy link
Author

jtpio commented Aug 4, 2023

@stevecwlau this was indeed an issue reported in jupyter-widgets/ipywidgets#3819.

But should now be fixed with the latest version of jupyterlite-pyodide-kernel. So updating the version and / or triggering a new build of the JupyterLite website should fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants