keplergl / kepler.gl

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
http://kepler.gl
MIT License
10.26k stars 1.72k forks source link

[Bug][Jupyter Widget] - Model class 'KeplerGlModal' from module 'keplergl-jupyter' is loaded but can not be instantiated #1993

Open ManuelBanza opened 1 year ago

ManuelBanza commented 1 year ago

Hi,

I do not know what happen but know I can not create or load maps. This message appears:

imagem

imagem

I uninstall and re install it all over again, and also on a new python environment but the problem remains.

Can anyone help?

Cheers

web3jenks commented 1 year ago

Same problem here.

image

image

ManuelBanza commented 1 year ago

Any news about this? I have tried everything but the problem remains...

rloredo commented 1 year ago

Same problem here, only that I'm inside a docker container

Model class 'KeplerGlModal' from module 'keplergl-jupyter' is loaded but can not be instantiated
TypeError: s._deserialize_state is not a function at m._make_model 
(http://localhost:8887/static/lab/4416.9d6d0a2f3f9ed5d7b141.js?v=9d6d0a2f3f9ed5d7b141:1:9692)
Screenshot 2022-10-19 at 19 21 56
fboerman commented 1 year ago

I too have this issue and it completely breaks the jupyter widget :(

Nicole-Hong commented 1 year ago

I am also struggling with the same issue. I think the problem is related to Node.js and Jupyterlab extension, so I followed the instruction for Windows in this link: https://nodejs.org/en/download/package-manager/#windows-1 I got stuck with the installation guide under "Chocolately" and "Scoop" and still could not resolve this issue. I am wondering if JupyterLab is not compatible with keplergl at all...how can I resolve this issue?

ghost commented 1 year ago

I would move to other mapping platform.. (Dash / Folium) as Kepler's last release was in 2021 https://github.com/keplergl/kepler.gl/releases/tag/v2.5.5

rloredo commented 1 year ago

@lennonzheng that is true, but there is still activity in the repo. The latest commit was 12hs ago.

AliBashiri commented 1 year ago

any updates on this?

fboerman commented 1 year ago

bump, I really would like to use this but cant right now

gc1201 commented 1 year ago

same issue here, any updates?

juliocraf commented 1 year ago

Hey guys.

I followed the following steps and it worked.

I use Windows 10 and in my case the problem was the node.js that was not installed.

the steps I followed were:

conda install -c conda-forge keplergl

jupyter nbextension install --py --sys-prefix keplergl # can be skipped for notebook 5.3 and above

jupyter nbextension enable --py --sys-prefix keplergl # can be skipped for notebook 5.3 and above

I installed node.js and it worked normally

print

curtis18 commented 1 year ago

@juliocraf I tried, but not working. May I know your python and node.js version? Thank you.

I am using the node.js version v18.17.1 IPython : 8.15.0 ipykernel : 6.25.2 ipywidgets : 8.1.0 jupyter_client : 7.4.9 jupyter_core : 5.3.1 jupyter_server : 2.7.3 jupyterlab : 3.6.5 nbclient : 0.8.0 nbconvert : 7.8.0 nbformat : 5.9.2 notebook : 6.5.5 qtconsole : not installed traitlets : 5.9.0

Details of error message [Open Browser Console for more detailed log - Double click to close this message] Model class 'KeplerGlModal' from module 'keplergl-jupyter' is loaded but can not be instantiated TypeError: s._deserialize_state is not a function at u._make_model (http://localhost:8888/nbextensions/jupyter-js-widgets/extension.js?v=20230907180952:2:780057)

juliocraf commented 1 year ago

"Good morning, I used this step-by-step guide here and it worked. I was getting the same error messages. The versions are: node 18.14.2, python: 3.9.16 abd keplergl: 0.3.2"

curtis18 commented 1 year ago

@juliocraf It works now, thanks a lot. I think it is related to the version of ipywidgets, and widgetsnbextension. There may be problem if ipywidgets >= 8.1 and widgetsnbextension >= 4.0. Using ipywidgets 7.8.0 and widgetsnbextension 3.6.5 works normal now.

webocean8 commented 2 months ago

It works now, thanks a lot.

I am using the node.js version v18.17.1 IPython : 8.15.0 ipykernel : 6.25.2 ipywidgets : 7.8.0 jupyter_client : 7.4.9 jupyter_core : 5.3.1 jupyter_server : 2.7.3 jupyterlab : 3.6.5

Using ipywidgets 7.8.0 and widgetsnbextension 3.6.5 works normal now. thanks