pbugnion / gmaps

Google maps for Jupyter notebooks
https://jupyter-gmaps.readthedocs.io/en/stable/
Other
760 stars 146 forks source link

Make gmaps work with JupyterLab #213

Closed brickb closed 6 years ago

brickb commented 6 years ago

Does gmaps work with Jupyterlab? When I try a simple example, I get the error "Error displaying widget". I have attached a screen shot of my console. I also tried inserting a simply interactive widget to ensure that those are working.

Versions jupyterlab: 0.31.1 jupyter notebook: 5.3.1 ipywidgets: 7.0.0

$ jupyter labextension list JupyterLab v0.31.1 Known labextensions: app dir: /opt/jupyter/anaconda3/share/jupyter/lab @jupyter-widgets/jupyterlab-manager @jupyter-widgets/jupyterlab-manager v0.33.0 enabled OK @jupyterlab/hub-extension @jupyterlab/hub-extension v0.8.0 enabled OK jupyter-matplotlib jupyter-matplotlib v0.3.0 enabled OK

$ jupyter nbextension list Known nbextensions: config dir: /opt/jupyter/anaconda3/etc/jupyter/nbconfig notebook section jupyter-js-widgets/extension enabled

Any help would be appreciated.

image

pbugnion commented 6 years ago

Thanks for raising this!

Does gmaps work with Jupyterlab

Not yet, no. This is on my list of things to do in the near-ish future, but PRs welcome in the meantime! For anyone looking to implement this -- a good starting point is looking at how other libraries ported to JupyterLab. For instance, this PR on ipyevents.

pbugnion commented 6 years ago

jupyter-gmaps 0.7.2-rc1 now supports JupyterLab, thanks to PR #218 :

pip install gmaps==0.7.2-rc1
jupyter lab build

I'll cut release 0.7.2 in the next few days.