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.

Error creating widget: could not find model

See original GitHub issue

I have a new problem, with latest updates, I don’t figure what I miss. any guess why I don’t find “model”?

import numpy as np
import bqplot.pyplot as plt
from bqplot import *
axes_options = {'x': {'label': 'x'}, 'y': {'label': 'y'}}
x = np.arange(100)
y = np.cumsum(np.random.randn(2, 100), axis=1) #two random walks

fig = plt.figure(animation_duration=1000)
lines = plt.plot(x=x, y=y, colors=['red', 'green'], axes_options=axes_options)
fig

gives


C:\WinP\bd37\bu\winp32-3.7.x.1\python-3.7.0\lib\site-packages\bqplot\pyplot.py:603: FutureWarning: Conversion of the second argument of issubdtype from `str` to `str` is deprecated. In future, it will be treated as `np.str_ == np.dtype(str).type`.
  issubdtype(dtype, Scale.scale_types[key].dtype)
Error creating widget: could not find model
!jupyter labextension list
JupyterLab v0.32.1
Known labextensions:
   app dir: C:\WinP\bd37\bu\winp32-3.7.x.1\python-3.7.0\share\jupyter\lab
@jupyter-widgets/jupyterlab-manager
        @jupyter-widgets/jupyterlab-manager v0.36.0-0 enabled  ok
@pyviz/jupyterlab_holoviews
        @pyviz/jupyterlab_holoviews v0.5.2 enabled  ok
@pyviz/jupyterlab_pyviz
        @pyviz/jupyterlab_pyviz v0.5.2 enabled  ok
bqplot
        bqplot v0.3.6 enabled  ok
jupyter-leaflet
        jupyter-leaflet v0.9.0 enabled  ok
jupyter-matplotlib
        jupyter-matplotlib v0.3.0 enabled  ok
jupyter-threejs
        jupyter-threejs v1.1.0 enabled  ok
jupyterlab-datawidgets
        jupyterlab-datawidgets v5.0.1 enabled  ok
jupyterlab-scales
        jupyterlab-scales v0.2.1 enabled  ok
jupyterlab_bokeh
        jupyterlab_bokeh v0.5.0 enabled  ok
Package                  Version      
------------------------ -------------
adodbapi                 2.6.0.7      
alabaster                0.7.11       
algopy                   0.5.7        
altair                   2.1.0        
altair-widgets           0.1.2        
appdirs                  1.4.3        
asciitree                0.3.3        
asteval                  0.9.12       
astroid                  1.6.5        
astroML                  0.3          
atomicwrites             1.1.5        
attrs                    18.1.0       
Babel                    2.6.0        
backcall                 0.1.0        
backports-abc            0.5          
baresql                  0.7.4        
bcolz                    1.2.1        
beautifulsoup4           4.6.0        
bleach                   2.1.3        
blosc                    1.5.1        
bloscpack                0.13.0       
bokeh                    0.13.0       
Bottleneck               1.2.1        
bqplot                   0.10.5       
brewer2mpl               1.4.1        
Brotli                   1.0.4        
certifi                  2018.4.16    
cffi                     1.11.5       
cftime                   1.0.0        
chardet                  3.0.4        
click                    6.7          
cloudpickle              0.5.3        
colorama                 0.3.9        
colorcet                 0.9.1        
comtypes                 1.1.4        
cvxopt                   1.2.0        
cvxpy                    1.0.6        
cx-Freeze                5.1.1        
cycler                   0.10.0       
Cython                   0.28.3       
cytoolz                  0.9.0.1      
dask                     0.18.1       
dask-searchcv            0.2.0        
datashader               0.6.7.dev0   
datashape                0.5.2        
db.py                    0.5.3        
decorator                4.3.0        
dill                     0.2.8.2      
distributed              1.22.0       
docopt                   0.6.2        
docrepr                  0.1.1        
docutils                 0.14         
ecos                     2.0.5        
emcee                    2.2.1        
entrypoints              0.2.3        
fast-histogram           0.4          
fastcache                1.0.2        
fasteners                0.14.1       
fastparquet              0.1.5        
Flask                    1.0.2        
formlayout               1.1.0        
future                   0.16.0       
fuzzywuzzy               0.16.0       
geographiclib            1.49         
geopy                    1.14.0       
gmpy2                    2.0.8        
greenlet                 0.4.13       
guidata                  1.7.6        
h5py                     2.8.0        
HeapDict                 1.0.0        
holoviews                1.10.7b1     
html5lib                 1.0.1        
husl                     4.0.3        
hvplot                   0.1.1        
idna                     2.7          
imageio                  2.3.0        
imagesize                1.0.0        
intake                   0.1.3        
ipydatawidgets           3.1.0        
ipykernel                4.8.2        
ipyleaflet               0.9.0        
ipympl                   0.2.0        
ipyparallel              6.2.2        
ipyscales                0.2.2        
ipython                  6.4.0        
ipython-genutils         0.2.0        
ipython-sql              0.3.9        
ipywidgets               7.2.1        
isort                    4.3.4        
itsdangerous             0.24         
jedi                     0.12.1       
Jinja2                   2.10         
joblib                   0.12.0       
jsonschema               2.6.0        
julia                    0.1.5        
jupyter                  1.0.0        
jupyter-client           5.2.3        
jupyter-console          5.2.0        
jupyter-core             4.4.0        
jupyter-sphinx           0.1.2        
jupyterlab               0.32.1       
jupyterlab-launcher      0.10.5       
keyring                  13.2.1       
kiwisolver               1.0.1        
lazy-object-proxy        1.3.1        
llvmlite                 0.23.2       
lmfit                    0.9.11       
locket                   0.2.0        
loky                     2.1.4        
lxml                     4.2.3        
Markdown                 2.6.11       
MarkupSafe               1.0          
matplotlib               2.2.2        
mccabe                   0.6.1        
metakernel               0.20.14      
mistune                  0.8.3        
mizani                   0.4.6        
mkl-service              1.1.2        
monotonic                1.5          
more-itertools           4.2.0        
moviepy                  0.2.3.5      
mpl-scatter-density      0.3          
mpld3                    0.3          
mpldatacursor            0.6.2        
mpmath                   1.0.0        
msgpack                  0.5.6        
msgpack-numpy            0.4.3        
msgpack-python           0.5.4+dummy  
multipledispatch         0.5.0        
multiprocess             0.70.6.1     
mysql-connector-python   8.0.6        
nbconvert                5.3.1        
nbconvert-reportlab      0.2          
nbformat                 4.4.0        
netCDF4                  1.4.0        
networkx                 2.1          
nltk                     3.3          
notebook                 5.5.0        
numba                    0.38.1       
numcodecs                0.5.5        
numdifftools             0.9.20       
numexpr                  2.6.5        
numpy                    1.14.5+mkl   
numpydoc                 0.8.0        
oct2py                   4.0.6        
octave-kernel            0.28.4       
osqp                     0.3.0        
packaging                17.1         
palettable               3.1.1        
pandas                   0.23.2       
pandas-datareader        0.6.0        
pandocfilters            1.4.2        
param                    1.7.0        
parambokeh               0.2.2        
paramnb                  2.0.2        
parso                    0.3.0        
partd                    0.3.8        
patsy                    0.5.0        
pdfrw                    0.4          
pdvega                   0.1          
pep8                     1.7.1        
pexpect                  4.6.0+dummy  
pg8000                   1.11.0       
pickleshare              0.7.4        
Pillow                   5.2.0        
pip                      10.0.1       
pkginfo                  1.4.2        
plotnine                 0.3.0        
pluggy                   0.6.0        
prettytable              0.7.2        
prompt-toolkit           1.0.15       
psutil                   5.4.6        
ptpython                 0.41         
PuLP                     1.6.8        
py                       1.5.4        
PyAudio                  0.2.11       
pybars3                  0.9.3        
pybind11                 2.2.3        
pycodestyle              2.4.0        
pycparser                2.17         
pyct                     0.4.3        
pyflakes                 2.0.0        
pyflux                   0.4.17       
pygame                   1.9.3        
Pygments                 2.2.0        
pylint                   1.9.2        
pymc                     2.3.7        
PyMeta3                  0.5.1        
pymongo                  3.7.0        
pyodbc                   4.0.23       
PyOpenGL                 3.1.2        
pypandoc                 1.3.2        
pyparsing                2.2.0        
PyQt5                    5.9.2        
pyqtgraph                0.11.0.dev0  
pyserial                 3.4          
pystache                 0.5.4        
pytest                   3.6.3        
python-dateutil          2.7.3        
python-hdf4              0.9.1        
python-Levenshtein       0.12.0       
python-snappy            0.5.3        
PythonQwt                0.5.5        
pythreejs                1.1.0        
pytz                     2018.5       
pyviz-comms              0.1.1        
PyWavelets               0.5.2        
pywin32                  223.1        
pywin32-ctypes           0.1.2        
pywinpty                 0.5.4        
pywinusb                 0.4.2        
PyYAML                   4.1          
pyzmq                    17.0.0       
pyzo                     4.5.2        
QtAwesome                0.5.0.dev0   
qtconsole                4.3.1        
QtPy                     1.4.2        
redis                    2.10.6       
regex                    2018.6.21    
reportlab                3.4.0        
requests                 2.19.1       
requests-file            1.4.3        
requests-ftp             0.3.1        
requests-toolbelt        0.8.0        
rope                     0.10.7       
rpy2                     2.9.4        
ruamel.yaml              0.15.42      
Rx                       1.6.1        
scikit-fuzzy             0.3.1        
scikit-image             0.14.0       
scikit-learn             0.19.1       
scikit-optimize          0.5.2        
scilab2py                0.6.1        
scipy                    1.1.0        
scs                      1.2.7        
seaborn                  0.9.dev0     
Send2Trash               1.5.0        
setuptools               39.2.0       
simplegeneric            0.8.1        
simplejson               3.16.0       
sip                      4.19.8       
six                      1.11.0       
snakeviz                 0.4.2        
snowballstemmer          1.2.1        
sortedcontainers         2.0.4        
sounddevice              0.3.11       
Sphinx                   1.7.5        
sphinx-rtd-theme         0.4.0        
sphinxcontrib-websupport 1.1.0        
spyder                   3.3.0        
spyder-kernels           0.2.4        
SQLAlchemy               1.2.9        
sqlite-bro               0.8.11       
sqlparse                 0.2.4        
statsmodels              0.9.0        
streamz                  0.3.0        
supersmoother            0.4          
sympy                    1.1.1        
tables                   3.4.4        
tblib                    1.3.2        
terminado                0.8.1        
testpath                 0.3.1        
Theano                   1.0.2        
thrift                   0.11.0       
toolz                    0.9.0        
tornado                  5.0.2        
tqdm                     4.23.4       
traitlets                4.3.2        
traittypes               0.2.1        
twine                    1.11.0       
twitter                  1.17.1       
typing                   3.6.4        
uncertainties            3.0.2        
urllib3                  1.23         
vega                     1.3.0        
vega3                    0.13.0       
ViTables                 3.0.0        
wcwidth                  0.1.7        
webencodings             0.5.1        
Werkzeug                 0.14.1       
wheel                    0.31.1       
widgetsnbextension       3.2.1        
winpython                1.10.20180624
wordcloud                1.4.1        
wrapt                    1.10.11      
xarray                   0.10.7       
xlrd                     1.1.0        
XlsxWriter               1.0.5        
xlwings                  0.11.5       
zarr                     2.2.0        
zict                     0.1.3        

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
stonebigcommented, Jul 21, 2019

it works again if I move forward to bqplot-0.12.0a2

1reaction
stonebigcommented, Jul 20, 2019

it seems I have again the problem, that was gone at a moment, strange

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error creating widget: could not find model #2125 - GitHub
1, with a "model not found error", generated per ipywidgets (?). I'm trying to build on jupyterlab-0.32.1, but something is not working anymore....
Read more >
Error creating widget: could not find model - Plotly Python
Error creating widget : could not find model. I'm on Window, with anaconda (and plotly 3.0.0@rc11 installed from pip). notebook=5.5.0
Read more >
Chapter 1 -- Error creating widget: could not find model
Hello, I'm having trouble running the fileUpload widget. Here's a screenshot of the cell and the output: But a few cells down, ...
Read more >
Error displaying widget; model not found: 5 Fixes
In this article, we're talking about the “Error displaying widget: model not found” problem when using Jupyter Labs in Python.
Read more >
Voila Ipyvuetify coud not instantiate widget error - Stack Overflow
I got this error and really I could not find a solution. I have a working version of my program previously installed on...
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