question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ipywidget error in jupyterlab notebook: "Could not find model"

See original GitHub issue

Hello, 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:

screen shot 2018-02-21 at 5 10 18 pm

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:

screen shot 2018-02-21 at 3 37 55 pm

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:closed
  • Created 6 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
maartenbreddelscommented, Feb 22, 2018

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!

1reaction
jasongroutcommented, Feb 23, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found