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

[Bug][Jupyter Widget] Google Colab Dependency Conflict Prevents Rendering #2914

Open
inventingian opened this issue Jan 13, 2025 · 2 comments
Assignees
Labels
jupyter keplergl for Jupyter

Comments

@inventingian
Copy link

Describe the bug
Using Google Colab and running ! pip install keplergl , a dependency conflict arises with jupyterlabs requirement for ipykernal version of >6.5.0 and google-colab requires version 5.5.6. This jupyerlabs dependency seems to prevent the widget from rendering using the provided keplergl documentation. This worked prior to the latest releases between December 2024 and January 2025

To Reproduce
Steps to reproduce the behavior:

  1. Open new Google Colab doc
  2. pip install keplergl
  3. map_1 = KeplerGl()
    3a. map_1

Expected behavior
Should display the kepler widget

Screenshots
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. google-colab 1.0.0 requires ipykernel==5.5.6, but you have ipykernel 6.29.5 which is incompatible.

Environment (please complete the following information):

  • Python version: python3
  • keplergl Widget version: 0.3.6

Additional context
The jupyerlabs v4.1.6 requires ipykernal 6.5.0

@lixun910
Copy link
Collaborator

We just updated keplergl-jupyter to v0.3.6 so it can work with latest Jupyter notebook with ipywidgets > 8 and notebook > 6. Can you try if the older version works on Google colab? Thanks!

!pip install keplergl==0.3.4a3

image

Ref: #2588

@inventingian
Copy link
Author

Interesting, it seems a few other things changed too.

The data has to be passed in as data={'df':df}, used to work with data=df. Easy enough fix.

However it seems my real issue using a custom config. If I create a custom config and try to use it, it doesnt show the map. (in my own notebook)

I tried troubleshooting with your sample ^ and if I run w1.config, it returns an empty dictionary before and after changing layer settings.

This occurs in 0.3.2 as well, but didn't used to.

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

No branches or pull requests

3 participants