ipywidget error in jupyterlab notebook: "Could not find model"
See original GitHub issueHello, I work on the development of a Python library that uses an ipywidget map. In the standard Jupyter Notebook environment, our map widget works great:
I am attempting to see if the map widget and our API will work just the same in JupyterLab notebooks. I run the following commands in either OSX or Windows for setup:
conda create --name new_jlab_env
source activate new_jlab_env
conda install -c conda-forge jupyterlab
jupyter labextension install @jupyter-widgets/jupyterlab-manager
conda install -c esri arcgis
jupyter lab
However, I get the following error when trying to use the map widget in jupyterlab notebooks:
From my understanding, in theory most ipywidgets should work in jupyterlab by installing jupyterlab-manager
like I did, correct? Am I missing a step, or is this a known issue like #1664 and #1684? Thanks for your help!
Here is a screenshot of my browser console during the widget drawing failure, here is my conda environment
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (8 by maintainers)
Top Results From Across the Web
How can I overcome "Error: Object 'jupyter.widget' not found in ...
ipynb notebook running in the same jupyterlab window, hit the restart kernel button. IMPORTANT: Don't forget to also REFRESH the browser page - ......
Read more >Error displaying widget: model not found -- how to fix this?
So as to use Stacked, I installed version 8: > pip uninstall ipywidgets > pip install ipywidgets==8.0.0b But upon displaying a Stacked ...
Read more >Installation — Jupyter Widgets 7.7.2 documentation
Answer: A text representation of the widget is printed if the widget control is not available. It may mean the widget JavaScript is...
Read more >Using the JupyterLab Environment | ArcGIS API for Python
1.8.2 of the Python API installed, 1.8.2 of the arcgis-map-ipywidget extension ... This is a very powerful feature of JupyterLab: you can stack...
Read more >Error displaying widget; model not found: 5 Fixes
Reinstall ipywidgets. If downgrading the version didn't help you, delete ipywidgets and install it again along with ipympl to see if that fixes ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Let me add to this that is will be transparent to users in the future. A pip install of a package can enable it both in the jupyter notebook and jupyter lab, we’re not there yet, but close!
Also please note that the JupyterLab extension api is still in flux until 1.0, so you may need to update jupyterlab extensions to keep up with beta releases. We try to shield you from this in ipywidgets, so hopefully things will be fairly stable, but the JupyterLab “beta” indicates that the plugin api is not stable.