gmaps icon indicating copy to clipboard operation
gmaps copied to clipboard

Error displaying widget (gmaps 0.8.0)

Open robertdefilippi opened this issue 7 years ago • 8 comments

robertdefilippi avatar Apr 28 '18 00:04 robertdefilippi

Hello,

I'm having an issue with getting gmaps to display in my jupyter lab

I tried the fixes here but I'm still having issues. I have a feeling it is due to the multiple config files, but I'm not sure.

Suggestions on fixes?

image

image

robertdefilippi avatar Apr 28 '18 01:04 robertdefilippi

The jupyter nbextension mechanism is only for the classic Notebook. JupyterLab has a completely independent extension system (I understand how this can be confusing). As far as I remember, this is the first installation issue around JupyterLab, so you can't follow any fixes that have been posted here.

Have you followed the JupyterLab installation instructions? After running jupyter lab build, you will need to refresh the browser tab with JupyterLab.

If that doesn't work, look at the output of jupyter labextension list. It should look like this:

screen shot 2018-04-28 at 07 15 15

pbugnion avatar Apr 28 '18 06:04 pbugnion

Hi,

I'm having the same issue as @robertdefilippi . Did you managed to solve it?

widgets.IntSlider() works properly, but when I try to run any gmaps example, Error displaying extension shows up.

gmaps.__version__ = 0.8.0

>> jupyter labextension list
JupyterLab v0.32.1
Known labextensions:
   app dir: /opt/conda/envs/poc/share/jupyter/lab
@jupyter-widgets/jupyterlab-manager
        @jupyter-widgets/jupyterlab-manager v0.35.0  enabled  OK
ipyvolume
        ipyvolume v0.4.6  enabled  OK
jupyter-gmaps
        jupyter-gmaps v0.8.0  enabled  OK
jupyter-leaflet
        jupyter-leaflet v0.9.0  enabled  OK

Susensio avatar Jul 18 '18 08:07 Susensio

Same for me. JupyterLab doesn't work but Jupyter Notebook works just fine.

yqmmm avatar Feb 01 '19 10:02 yqmmm

Can you refer to this issue about issues with JupyterLab?

pbugnion avatar Feb 01 '19 12:02 pbugnion

@pbugnion I have follwed the instruction. But the problem is actually that I have two conda enviroment, I run jupyterlab on one and run the kernel with gmaps on the other one. I resolved this problem by put jupyterlab and gmaps in the same enviroment.

thank you~

yqmmm avatar Feb 18 '19 08:02 yqmmm

Ah interesting -- For reference, the Python code needs to live in the same environment as the kernel, whereas the frontend extension needs to live in the same environment as JupyterLab.

Running JupyterLab in the same environment as the kernel would definitely ensure that that happens.

pbugnion avatar Feb 18 '19 09:02 pbugnion

Hi everyone, I'm having similar issues. Trying to use gmaps on Jupyter Lab but maps won't show up.

I followed the exact instructions listed here, with conda.

When I run $ conda list I have the following packages: gmaps 0.8.2 jupyterlab_widgets 1.0.0 nodejs 15.3.0

I've also installed NPM in my efforts to make this work...

The example I'm running it's the earthquake one...The error message is: Error displaying widget: model not found

image

image

image

Any help is welcome. Thanks!!

Jgaischuk avatar Jan 25 '21 14:01 Jgaischuk