keplergl / keplergl/kepler.gl

[Bug][Jupyter Widget] KeplerGl won't load on JupyterLab 3 and 4

Open
#2,288 5 comments 12 reactions 1 assignee Claimed by @heshan0131 View on GitHub
jupyter
Dominant language
TypeScript
Stars
12k
Forks
2k
Avg merge
1d 5h
Merged PRs (30d)
66

Description

**Describe the bug**
Basic KeplerGl map widget is not loading on JupyterLab 4.0.2. I get an "error displaying widget" message as output of the cell.
I also face this in JupyterLab 3, when I install keplerGl on the fly in a cell (not via pipfile), However if I reload the notebook and run the cell, the map is rendered as expected.
This works as expected, for both on the fly and pipfile installation when working with Jupyter Notebook 6.0.0.

**To Reproduce**
Steps to reproduce the behavior:
1. Load kepler
2. Add data (GeoPandas DataFrame in my case) and set config (optional).
3. Display map

**Expected behavior**
The map should be rendered.

**Screenshots**
![Screenshot 2023-07-06 at 2 22 26 PM](https://github.com/keplergl/kepler.gl/assets/28722515/5faf981a-b5c1-45a7-89cc-42e88cc2bd7c)

**Environment (please complete the following information):**
- Python version: 3.9
- keplergl Widget version 0.3.2
- JupyterLab 4.0.2

**Additional context**
Output of jupyter labextension list:
JupyterLab v4.0.2
/srv/conda/envs/notebook/share/jupyter/labextensions
jupyter-offlinenotebook v0.2.2 enabled X
jupyterlab_pygments v0.2.2 enabled X (python, jupyterlab_pygments)
keplergl-jupyter v0.3.2 enabled X
@jupyter-widgets/jupyterlab-manager v3.1.4 enabled X (python, jupyterlab_widgets)
@jupyter-server/resource-usage v0.7.1 enabled X (python, jupyter-resource-usage)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.