-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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] Error displaying widget: model not found #1064
Comments
A work-around in kepler's Jupyter widget: from keplergl import KeplerGl
map_1 = KeplerGl()
map_1.save_to_html() And then open BTW, |
@JackKelly your work-around does not take advantage of Kepler.gl feature to render the interactive widget inside the notebook, allowing to edit it, and then save the notebook (taking care of having "Settings -> Save Widget State Automatically") to save the state of the Kepler-gl widget: then use e.g. "map_1.config" to get the saved config from it, that could be saved as a file (that could be used as an input config when creating the widget itself, so to allow easy editing of the kepler.gl map, and as a last action do a "save_to_html" to create the final file). Anyway, trying (but not succeeding) to solve your same problem (that is also reported by others, and is an outstanding problem) I can report this: Besides your installation steps, I've also done these actions:
...and then in JupyterLab: I'm not sure which action triggered a different behaviour than the "Error displaying widget: model not found", but now when trying to display the widget with:
...I get this instead:
...but actually the widget never shows up. The kernel works (filled circle) and then it goes back to unused state (empty circle), and I can keep using the notebook normally, but instead of the interactive kepler.gl widget I just have that "Loading widget..." text. |
I'm getting this as well. So far no luck with updating or any other trouble shooting. |
I am getting same errors. This wasn't happening a few weeks ago, I tried with new env and still no luck. |
Any updates on this? perhaps the best way is to downgrade Jupyterlab? Can anyone let me know the last jupyterlab version that this worked with? |
Upgrade widget to kepler.gl@^2 and supporting JupyterLab 2 |
just published |
I am now able to get this working in jupyter lab 2.1.2!! Hooray! Thanks @heshan0131 For future reference here are my versions:
Node version: |
No success here.
After this command, the automatic build of JupyterLab started and failed, so I've done:
...and the build completed successfully.
...but I've got the same behavior as before (the "Loading widget..." message, without actually showing the widget). These are my versions:
|
You can try my instructions here: https://github.com/firasm/keplergl_tutorial/blob/master/1%20-%20Install/Installation%20instructions.ipynb. You may need to also run
P.S. I'd also encourage you to update jupyter to 2.1.2 ( |
Thank you for your kind help @firasm
So now I have:
Oh, maybe this is useful to highlight: I see from Chrome developer console this problem when I open a .ipynb file that uses Kepler.gl:
|
Ah, it seems your keplergl widget version is old. You’ll need the latest one that was released yesterday:
|
Thanks @firasm, I thought I had upgraded to the latest one relased yesterday, but probably I did it in a wrong way... because well, after a Though, in Chrome developer console, I still get that error:
I'm curious if I'm the only one now with a working keplergl widget in JupyterLab 2, who gets that error in console, or it's a normal thing. Regardless of that, anyway, big thanks to @heshan0131 and whoever else contributed to making this work in JupyterLab 2, and thank you @firasm for your guide towards making it work for me. |
--Note-- I realized that I can't reopen this issue, so I have moved my comment into a new one below: |
Received the same error, and after countless tries to update jupyterlab + keplergl I found myself in the following situation: JupyterLab v2.2.0 Uninstalled core extensions: Namely the extension was both unknown and installed, which seems to be bit of a jupyterlab bug (https://discourse.jupyter.org/t/extension-shows-up-as-both-installed-and-uninstalled-and-doesnt-work/2688/5) Solution as suggested was to delete the (Sidenote: Now I finally keplergl working on my AI Notebook at google cloud platform, hurray!) Thanks for an awesome product! |
If anyone's stuck on an old version of the components, this workaround worked for me:
|
Describe the bug
Attempting to display a map in JupyterLab 2.1.0 prints an error within Jupyter Lab: "Error displaying widget: model not found"
My guess (but I really am guessing!) is that the keplergl widget needs to be updated to play nicely with JupyterLab 2.1.0. (Or maybe I'm doing something stupid! This is the first time I've tried installing the keplergl widget!)
To Reproduce
Installation:
Create a new notebook and run:
Output:
Expected behavior
A map should be displayed :)
Environment:
jupyter labextension list
Bug reports in other projects
Here are issues in other projects where users report seeing the "Error displaying widget: model not found" issue:
The text was updated successfully, but these errors were encountered: