Skip to content
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

Cannot display ipyleaflet in panel #2691

Closed
dbeniamine opened this issue Aug 30, 2021 · 10 comments · Fixed by #3299
Closed

Cannot display ipyleaflet in panel #2691

dbeniamine opened this issue Aug 30, 2021 · 10 comments · Fixed by #3299
Labels
type: bug Something isn't correct or isn't working
Milestone

Comments

@dbeniamine
Copy link

Hello,

I am trying to display a ipyleaflet map inside a panel, as show here

I can display the ipyleaflet without panel with:

from ipyleaflet import *

center = (44, 3)
m = Map(center=center)
m

To display it using panel, I tried:

from ipyleaflet import *

import panel as pn 

pn.extension()  

center = (44, 3)
m = Map(center=center)
pn.panel(m)

and got no output but this error in my web console:

Uncaught (in promise) Error: Comm is already created
    createComm http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:71406
    _create_comm http://localhost:8001/jupyter/static/lab/397.fd84200f450d75657c4e.js?v=fd84200f450d75657c4e:460
    all_models http://localhost:8001/jupyter/static/lab/3534.aa1f074fdf3ff90cdf9a.js?v=aa1f074fdf3ff90cdf9a:727
    all_models http://localhost:8001/jupyter/static/lab/3534.aa1f074fdf3ff90cdf9a.js?v=aa1f074fdf3ff90cdf9a:696
    promise callback*53534/ManagerBase</ManagerBase.prototype.set_state http://localhost:8001/jupyter/static/lab/3534.aa1f074fdf3ff90cdf9a.js?v=aa1f074fdf3ff90cdf9a:685
    set_state http://localhost:8001/jupyter/lab/extensions/@pyviz/jupyterlab_pyviz/static/366.b19bb007778a276b2ee8.js?v=b19bb007778a276b2ee8:1
    _render https://unpkg.com/@holoviz/[email protected]/dist/panel.min.js:134
    render https://unpkg.com/@holoviz/[email protected]/dist/panel.min.js:134
    render https://cdn.bokeh.org/bokeh/release/bokeh-2.3.3.min.js:506
    build https://cdn.bokeh.org/bokeh/release/bokeh-2.3.3.min.js:506
    renderTo https://cdn.bokeh.org/bokeh/release/bokeh-2.3.3.min.js:506
    f https://cdn.bokeh.org/bokeh/release/bokeh-2.3.3.min.js:582
    add_document_standalone https://cdn.bokeh.org/bokeh/release/bokeh-2.3.3.min.js:582
    embed_items_notebook https://cdn.bokeh.org/bokeh/release/bokeh-2.3.3.min.js:589
    embed_document http://localhost:8001/jupyter/lab/tree/dashboards/leaflet_map.ipynb line 115456 > injectedScript:5
    <anonymous> http://localhost:8001/jupyter/lab/tree/dashboards/leaflet_map.ipynb line 115456 > injectedScript:8
    <anonymous> http://localhost:8001/jupyter/lab/tree/dashboards/leaflet_map.ipynb line 115456 > injectedScript:24
    attachWidget http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:115456
    insertWidget http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:115359
    _insertOutput http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:65035
    onModelChanged http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:64831
    invokeSlot http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:111878
    emit http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:111835
    emit http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:111518
    _onListChanged http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:64514
    invokeSlot http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:111878
    emit http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:111835
    emit http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:111518
    push http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:63452
    _add http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:64490
    add http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:64411
    _onIOPub http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:64697
    _handleIOPub http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:72199
    handleMsg http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:72169
    _handleMessage http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:71782
    _msgChain http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:70741
    promise callback*KernelConnection/this._onWSMessage http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:70738
    _createSocket http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:70707
    setTimeout handler*_reconnect http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:71860
    reconnect http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:71147
    restart http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:71118
    restartKernel http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:7994
    restart http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:8452
    onClick http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:58213
    handleMouseDown http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:9134
    Rb http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:155
    Xb http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:155
    Yb http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:156
    Ze http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:203
    se http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:204
    jd http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:216
    Jb http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:395
    Nb http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:153
    jd http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:208
    yc http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:178
    hd http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:177
    unstable_runWithPriority http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:459
    gg http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:225
    Hb http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:395
    gd

I have the same behavior with:

from ipyleaflet import *

import panel as pn 

pn.extension()  

center = (44, 3)
m = Map(center=center)
pn.pane.ipywidget.IPyLeaflet(m)

and if I add comms=ipywidgets:

from ipyleaflet import *

import panel as pn 

pn.extension(comms='ipywidgets')  

center = (44, 3)
m = Map(center=center)
pn.panel(m)

I have the message Error displaying widget in the notebook output and the following in my web console:

Error: Could not create a view for model id 64ab050d7a604240a5f435350312d5f0
    promiseRejection http://localhost:8001/jupyter/static/lab/3534.aa1f074fdf3ff90cdf9a.js?v=aa1f074fdf3ff90cdf9a:174
    promise callback*53534/ManagerBase</ManagerBase.prototype.create_view/model.state_change< http://localhost:8001/jupyter/static/lab/3534.aa1f074fdf3ff90cdf9a.js?v=aa1f074fdf3ff90cdf9a:438
    promise callback*53534/ManagerBase</ManagerBase.prototype.create_view http://localhost:8001/jupyter/static/lab/3534.aa1f074fdf3ff90cdf9a.js?v=aa1f074fdf3ff90cdf9a:430
    display_model http://localhost:8001/jupyter/static/lab/3534.aa1f074fdf3ff90cdf9a.js?v=aa1f074fdf3ff90cdf9a:417
    renderModel http://localhost:8001/jupyter/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/523.fa256ee012d38a89b65a.js:1
    createRenderedMimetype http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:65111
    createOutputItem http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:65083
    _createOutput http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:65049
    _insertOutput http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:65032
    onModelChanged http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:64831
    invokeSlot http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:111878
    emit http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:111835
    emit http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:111518
    _onListChanged http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:64514
    invokeSlot http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:111878
    emit http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:111835
    emit http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:111518
    push http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:63452
    _add http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:64490
    add http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:64411
    _onIOPub http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:64697
    _handleIOPub http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:72199
    handleMsg http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:72169
    _handleMessage http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:71782
    _msgChain http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:70741
    promise callback*KernelConnection/this._onWSMessage http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:70738
    _createSocket http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:70707
    setTimeout handler*_reconnect http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:71860
    reconnect http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:71147
    restart http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:71118
    restartKernel http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:7994
    restart http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:8452
    onClick http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:58213
    handleMouseDown http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:9134
    Rb http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:155
    Xb http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:155
    Yb http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:156
    Ze http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:203
    se http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:204
    jd http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:216
    Jb http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:395
    Nb http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:153
    jd http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:208
    yc http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:178
    hd http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:177
    unstable_runWithPriority http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:459
    gg http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:225
    Hb http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:395
3534.aa1f074fdf3ff90cdf9a.js:174:21
Error: Could not create view
    promiseRejection http://localhost:8001/jupyter/static/lab/3534.aa1f074fdf3ff90cdf9a.js?v=aa1f074fdf3ff90cdf9a:174
    promise callback*53534/ManagerBase</ManagerBase.prototype.display_model http://localhost:8001/jupyter/static/lab/3534.aa1f074fdf3ff90cdf9a.js?v=aa1f074fdf3ff90cdf9a:417
    renderModel http://localhost:8001/jupyter/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/523.fa256ee012d38a89b65a.js:1
    createRenderedMimetype http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:65111
    createOutputItem http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:65083
    _createOutput http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:65049
    _insertOutput http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:65032
    onModelChanged http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:64831
    invokeSlot http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:111878
    emit http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:111835
    emit http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:111518
    _onListChanged http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:64514
    invokeSlot http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:111878
    emit http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:111835
    emit http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:111518
    push http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:63452
    _add http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:64490
    add http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:64411
    _onIOPub http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:64697
    _handleIOPub http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:72199
    handleMsg http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:72169
    _handleMessage http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:71782
    _msgChain http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:70741
    promise callback*KernelConnection/this._onWSMessage http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:70738
    _createSocket http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:70707
    setTimeout handler*_reconnect http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:71860
    reconnect http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:71147
    restart http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:71118
    restartKernel http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:7994
    restart http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:8452
    onClick http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:58213
    handleMouseDown http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:9134
    Rb http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:155
    Xb http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:155
    Yb http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:156
    Ze http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:203
    se http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:204
    jd http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:216
    Jb http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:395
    Nb http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:153
    jd http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:208
    yc http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:178
    hd http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:177
    unstable_runWithPriority http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:459
    gg http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:225
    Hb http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:395
3534.aa1f074fdf3ff90cdf9a.js:174:21
Error: Model 'ipywidgets_bokeh.widget.IPyWidget' does not exist. This could be due to a widget or a custom model not being registered before first usage.
    get https://cdn.bokeh.org/bokeh/release/bokeh-2.3.3.min.js:166
    _instantiate_object https://cdn.bokeh.org/bokeh/release/bokeh-2.3.3.min.js:165
    _instantiate_references_json https://cdn.bokeh.org/bokeh/release/bokeh-2.3.3.min.js:165
    from_json https://cdn.bokeh.org/bokeh/release/bokeh-2.3.3.min.js:165
    render http://localhost:8001/jupyter/lab/extensions/@bokeh/jupyter_bokeh/static/809.23ba682ce67b2be2f544.js?v=23ba682ce67b2be2f544:1
    state_change http://localhost:8001/jupyter/static/lab/3534.aa1f074fdf3ff90cdf9a.js?v=aa1f074fdf3ff90cdf9a:437
    promise callback*53534/ManagerBase</ManagerBase.prototype.create_view/model.state_change< http://localhost:8001/jupyter/static/lab/3534.aa1f074fdf3ff90cdf9a.js?v=aa1f074fdf3ff90cdf9a:431
    promise callback*53534/ManagerBase</ManagerBase.prototype.create_view http://localhost:8001/jupyter/static/lab/3534.aa1f074fdf3ff90cdf9a.js?v=aa1f074fdf3ff90cdf9a:430
    display_model http://localhost:8001/jupyter/static/lab/3534.aa1f074fdf3ff90cdf9a.js?v=aa1f074fdf3ff90cdf9a:417
    renderModel http://localhost:8001/jupyter/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/523.fa256ee012d38a89b65a.js:1
    createRenderedMimetype http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:65111
    createOutputItem http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:65083
    _createOutput http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:65049
    _insertOutput http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:65032
    onModelChanged http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:64831
    invokeSlot http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:111878
    emit http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:111835
    emit http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:111518
    _onListChanged http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:64514
    invokeSlot http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:111878
    emit http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:111835
    emit http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:111518
    push http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:63452
    _add http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:64490
    add http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:64411
    _onIOPub http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:64697
    _handleIOPub http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:72199
    handleMsg http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:72169
    _handleMessage http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:71782
    _msgChain http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:70741
    promise callback*KernelConnection/this._onWSMessage http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:70738
    _createSocket http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:70707
    setTimeout handler*_reconnect http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:71860
    reconnect http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:71147
    restart http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:71118
    restartKernel http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:7994
    restart http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:8452
    onClick http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:58213
    handleMouseDown http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:9134
    Rb http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:155
    Xb http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:155
    Yb http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:156
    Ze http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:203
    se http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:204
    jd http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:216
    Jb http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:395
    Nb http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:153
    jd http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:208
    yc http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:178
    hd http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:177
    unstable_runWithPriority http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:459
    gg http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:225
    Hb http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:395
523.fa256ee012d38a89b65a.js:1:1365
Uncaught (in promise) Error: Model 'ipywidgets_bokeh.widget.IPyWidget' does not exist. This could be due to a widget or a custom model not being registered before first usage.
    get https://cdn.bokeh.org/bokeh/release/bokeh-2.3.3.min.js:166
    _instantiate_object https://cdn.bokeh.org/bokeh/release/bokeh-2.3.3.min.js:165
    _instantiate_references_json https://cdn.bokeh.org/bokeh/release/bokeh-2.3.3.min.js:165
    from_json https://cdn.bokeh.org/bokeh/release/bokeh-2.3.3.min.js:165
    render http://localhost:8001/jupyter/lab/extensions/@bokeh/jupyter_bokeh/static/809.23ba682ce67b2be2f544.js?v=23ba682ce67b2be2f544:1
    state_change http://localhost:8001/jupyter/static/lab/3534.aa1f074fdf3ff90cdf9a.js?v=aa1f074fdf3ff90cdf9a:437
    promise callback*53534/ManagerBase</ManagerBase.prototype.create_view/model.state_change< http://localhost:8001/jupyter/static/lab/3534.aa1f074fdf3ff90cdf9a.js?v=aa1f074fdf3ff90cdf9a:431
    promise callback*53534/ManagerBase</ManagerBase.prototype.create_view http://localhost:8001/jupyter/static/lab/3534.aa1f074fdf3ff90cdf9a.js?v=aa1f074fdf3ff90cdf9a:430
    display_model http://localhost:8001/jupyter/static/lab/3534.aa1f074fdf3ff90cdf9a.js?v=aa1f074fdf3ff90cdf9a:417
    renderModel http://localhost:8001/jupyter/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/523.fa256ee012d38a89b65a.js:1
    createRenderedMimetype http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:65111
    createOutputItem http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:65083
    _createOutput http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:65049
    _insertOutput http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:65032
    onModelChanged http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:64831
    invokeSlot http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:111878
    emit http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:111835
    emit http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:111518
    _onListChanged http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:64514
    invokeSlot http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:111878
    emit http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:111835
    emit http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:111518
    push http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:63452
    _add http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:64490
    add http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:64411
    _onIOPub http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:64697
    _handleIOPub http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:72199
    handleMsg http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:72169
    _handleMessage http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:71782
    _msgChain http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:70741
    promise callback*KernelConnection/this._onWSMessage http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:70738
    _createSocket http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:70707
    setTimeout handler*_reconnect http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:71860
    reconnect http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:71147
    restart http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:71118
    restartKernel http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:7994
    restart http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:8452
    onClick http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:58213
    handleMouseDown http://localhost:8001/jupyter/static/lab/jlab_core.4fb9793a99a242f4291d.js?v=4fb9793a99a242f4291d:9134
    Rb http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:155
    Xb http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:155
    Yb http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:156
    Ze http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:203
    se http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:204
    jd http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:216
    Jb http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:395
    Nb http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:153
    jd http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:208
    yc http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:178
    hd http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:177
    unstable_runWithPriority http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:459
    gg http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:225
    Hb http://localhost:8001/jupyter/static/lab/3935.90e5e9498ee4bfa72182.js?v=90e5e9498ee4bfa72182:395
bokeh-2.3.3.min.js:166:1004

Software version

  • OS : Debian 10
  • Pip packages:
anyio==3.3.0             
argon2-cffi==21.1.0
attrs==21.2.0           
awesome-slugify==1.6.5
Babel==2.9.1           
backcall==0.2.0 
bleach==4.1.0   
bokeh==2.3.3      
certifi==2021.5.30    
cffi==1.14.6               
charset-normalizer==2.0.4
colorama==0.4.4
cycler==0.10.0      
Cython==0.29.24      
debugpy==1.4.1         
decorator==5.0.9  
defusedxml==0.7.1                                                                                                                                                                                          [75/9316]
entrypoints==0.3             
et-xmlfile==1.1.0   
future==0.18.2        
gitdb==4.0.7              
GitPython==3.1.18       
greenlet==1.1.1          
idna==3.2        
ipykernel==6.3.0         
ipyleaflet==0.14.0       
ipython==7.27.0    
ipython-genutils==0.2.0 
ipywidgets==7.6.3
ipywidgets-bokeh==1.0.2
jdcal==1.4.1    
jedi==0.18.0    
Jinja2==3.0.1     
joblib==1.0.1         
json5==0.9.6               
jsonschema==3.2.0 
jupyter==1.0.0 
jupyter-bokeh==3.0.2
jupyter-client==7.0.2
jupyter-console==6.4.0 
jupyter-core==4.7.1    
jupyter-server==1.10.2                                                                                                                                                                                     [50/9316]
jupyter-server-mathjax==0.2.3
jupyterlab==3.1.9   
jupyterlab-git==0.32.2
jupyterlab-pygments==0.1.2
jupyterlab-server==2.7.2
jupyterlab-widgets==1.0.0
kiwisolver==1.3.2
Markdown==3.3.4          
MarkupSafe==2.0.1        
matplotlib==3.4.3  
matplotlib-inline==0.1.2
mistune==0.8.4 
nbclassic==0.3.1    
nbclient==0.5.4 
nbconvert==6.1.0
nbdime==3.1.0     
nbformat==5.1.3       
nest-asyncio==1.5.1        
notebook==6.4.3   
numpy==1.19.5  
openpyxl==3.0.7
packaging==21.0    
pandas==1.3.2          
pandocfilters==1.4.3  
panel==0.12.1                                                                                                                                                                                              [25/9316]
param==1.11.1             
parso==0.8.2        
patsy==0.5.1
pexpect==4.8.0   
pickleshare==0.7.5
Pillow==8.3.1
pmdarima==1.8.2
prometheus-client==0.11.0
prompt-toolkit==3.0.20   
ptyprocess==0.7.0  
pycparser==2.20  
pyct==0.4.8    
Pygments==2.10.0    
pymonetdb==1.4.1
pyparsing==2.4.7
pyrsistent==0.18.0
python-dateutil==2.8.2
pytz==2021.1               
pyviz-comms==2.1.0
PyYAML==5.4.1  
pyzmq==22.2.1 
qtconsole==5.1.1   
QtPy==1.10.0           
regex==2021.8.28  
requests==2.26.0
requests-unixsocket==0.2.0
scikit-learn==0.24.2
scipy==1.7.1
Send2Trash==1.8.0
six==1.16.0
smmap==4.0.0
sniffio==1.2.0
SQLAlchemy==1.4.23
sqlalchemy-monetdb==1.0.0
statsmodels==0.12.2
terminado==0.11.1
testpath==0.5.0
threadpoolctl==2.2.0
tornado==6.1
tqdm==4.62.2
traitlets==5.0.5
traittypes==0.2.1
typing-extensions==3.10.0.1
Unidecode==0.4.21
urllib3==1.26.6
wcwidth==0.2.5
webencodings==0.5.1
websocket-client==1.2.1
widgetsnbextension==3.5.1
xlrd==2.0.1
  • Jupyterlab extensions:
JupyterLab v3.1.9
/usr/local/share/jupyter/labextensions
        nbdime-jupyterlab v2.1.0 enabled OK
        jupyter-leaflet v0.14.0 enabled OK
        @jupyterlab/git v0.32.2 enabled OK (python, jupyterlab-git)
        @pyviz/jupyterlab_pyviz v2.1.0 enabled OK (python, pyviz_comms)
        @bokeh/jupyter_bokeh v3.0.2 enabled OK (python, jupyter_bokeh)
        @jupyter-widgets/jupyterlab-manager v3.0.0 enabled OK (python, jupyterlab_widgets)

Other labextensions (built into JupyterLab)
   app dir: /usr/local/share/jupyter/lab

@philippjfr
Copy link
Member

Thanks for the report. Rendering ipywidgets wrapped in panels as an ipywidget is not currently a supported configuration. Is there any reason why you are switching to 'ipywidgets' comms?

pn.extension(comms='ipywidgets')  

@MarcSkovMadsen
Copy link
Collaborator

MarcSkovMadsen commented Aug 31, 2021

Hi @dbeniamine

could you try downgrading to ipykernel<6 ?

c.f. #2593

@philippjfr
Copy link
Member

Ignore my comment, somehow missed the rest of your comment.

@philippjfr philippjfr added the type: bug Something isn't correct or isn't working label Sep 1, 2021
@MarcSkovMadsen
Copy link
Collaborator

MarcSkovMadsen commented Sep 1, 2021

Works for me with Panel 0.12.1, ipyleaflet 0.14.0, ipykernel 5.5.5

image

Python Packages Package Version Location ------------------------- ------------------- ------------------------------------------------------------ absl-py 0.12.0 ahlive 0.0.1 alabaster 0.7.12 alembic 1.4.1 altair 4.1.0 analytics-workspace 0.0.2 c:\repos\private\awesome-panel\.venv\src\analytics-workspace annexremote 1.5.0 anyio 2.0.2 appdirs 1.4.4 argh 0.26.2 argon2-cffi 20.1.0 astor 0.8.1 astroid 2.5.6 astropy 4.0.1.post1 astunparse 1.6.3 atomicwrites 1.4.0 attrs 19.3.0 autoflake 1.4 awesome-panel 20200512.1 c:\repos\private\awesome-panel\package awesome-panel-extensions 20210725.2 c:\repos\private\panel-extensions-template Babel 2.8.0 backcall 0.1.0 bandit 1.7.0 base58 2.1.0 beautifulsoup4 4.9.3 benchmark 0.1.1 black 21.5b1 bleach 3.1.5 blinker 1.4 blis 0.7.4 bokeh 2.3.3 bokeh-root-cmd 0.0.5 Boruta 0.3 boto 2.49.0 Bottleneck 1.3.2 Brotli 1.0.9 cached-property 1.5.2 cachetools 4.1.0 catalogue 1.0.0 certifi 2020.4.5.1 cffi 1.14.5 chardet 3.0.4 click 7.1.2 click-plugins 1.1.1 click-spinner 0.1.10 cligj 0.5.0 cloudpickle 1.6.0 colorama 0.4.3 colorcet 2.0.2 colorlover 0.3.0 commonmark 0.9.1 ConfigArgParse 1.3 confuse 1.1.0 coverage 5.5 cufflinks 0.17.3 cx-Oracle 8.2.0 cycler 0.10.0 cymem 2.0.5 Cython 0.29.14 dash 1.17.0 dash-core-components 1.13.0 dash-html-components 1.1.1 dash-renderer 1.8.3 dash-table 4.11.0 dask 2.26.0 databricks-cli 0.14.3 datalad 0.14.2 datalad-installer 0.3.0 datashader 0.11.1 datashape 0.5.2 decorator 4.4.2 defusedxml 0.6.0 Deprecated 1.2.12 diskcache 5.2.1 distributed 2.26.0 dnspython 1.16.0 doc8 0.8.1 docker 5.0.0 docopt 0.6.2 docutils 0.16 entrypoints 0.3 fasteners 0.16 fastjsonschema 2.15.0 fett 0.3.2 Fiona 1.8.17 fitparse 1.1.0 Flask 1.1.2 Flask-BasicAuth 0.2.0 Flask-Compress 1.8.0 Flask-Cors 3.0.10 Flask-Sockets 0.2.1 flatbuffers 1.12 fsspec 0.8.2 funcy 1.16 future 0.18.2 gast 0.3.3 GDAL 3.1.3 gensim 3.8.3 geopandas 0.7.0 gevent 21.1.2 gevent-websocket 0.10.1 geventhttpclient 1.4.4 gitdb 4.0.5 GitPython 3.1.2 google-auth 1.15.0 google-auth-oauthlib 0.4.1 google-pasta 0.2.0 greenlet 1.0.0 grpcio 1.32.0 h5py 2.10.0 HeapDict 1.0.1 holoviews 1.14.3 htmlmin 0.1.12 humanize 3.4.1 hvplot 0.7.1 idna 2.9 idom 0.23.1 ImageHash 4.1.0 imageio 2.8.0 imageio-ffmpeg 0.4.2 imagesize 1.2.0 imbalanced-learn 0.7.0 importlib-metadata 1.6.0 iniconfig 1.1.1 invoke 1.3.0 ipydatawidgets 4.1.0 ipykernel 5.5.5 ipyleaflet 0.14.0 ipython 7.14.0 ipython-genutils 0.2.0 ipyvolume 0.5.2 ipywebrtc 0.5.0 ipywidgets 7.6.3 ipywidgets-bokeh 1.0.2 iso3166 1.0.1 iso8601 0.1.14 isodate 0.6.0 isort 5.8.0 itsdangerous 1.1.0 jedi 0.17.0 jellyfish 0.6.1 Jinja2 2.11.2 joblib 0.15.1 jsmin 2.2.2 json5 0.9.5 jsonpatch 1.32 jsonpointer 2.1 jsonschema 3.2.0 jupyter 1.0.0 jupyter-bokeh 2.0.0 jupyter-client 6.1.3 jupyter-console 6.1.0 jupyter-containds 0.2.2 jupyter-core 4.6.3 jupyter-packaging 0.7.12 jupyter-server 1.6.0 jupyterlab 3.0.13 jupyterlab-server 2.4.0 jupyterlab-widgets 1.0.0 Keras 2.4.3 Keras-Applications 1.0.8 keras-nightly 2.5.0.dev2021032900 Keras-Preprocessing 1.1.2 keyring 21.2.1 keyrings.alt 4.0.2 kiwisolver 1.2.0 kmodes 0.11.0 lazy-object-proxy 1.4.3 lightgbm 3.2.1 livereload 2.6.1 llvmlite 0.34.0 locket 0.2.0 locust 1.5.2 lux 0.8.2 lux-api 0.3.1 lux-widget 0.1.5 lxml 4.6.3 Mako 1.1.4 Markdown 3.2.2 MarkupSafe 1.1.1 matplotlib 3.3.0 mccabe 0.6.1 missingno 0.4.2 mistune 0.8.4 mlflow 1.17.0 mlxtend 0.18.0 more-itertools 8.3.0 msgpack 1.0.0 multidict 5.1.0 multimethod 1.4 multipledispatch 0.6.0 multitasking 0.0.9 munch 2.5.0 murmurhash 1.0.5 mypy 0.910 mypy-extensions 0.4.3 nbclassic 0.2.6 nbconvert 5.6.1 nbformat 5.0.6 nbsite 0.6.7 networkx 2.5 nibabel 3.2.1 nltk 3.6.2 notebook 6.1.6 numba 0.51.2 numexpr 2.7.3 numpy 1.19.5 oauthlib 3.1.0 opt-einsum 3.3.0 packaging 20.4 pandas 1.2.2 pandas-profiling 2.8.0 pandocfilters 1.4.2 panel 0.12.1 panel-chemistry 0.0.8 c:\repos\private\panel-chemistry panel-highcharts 20210724.2 param 1.11.1 parso 0.7.0 partd 1.1.0 pathspec 0.8.1 pathtools 0.1.2 patool 1.12 patsy 0.5.1 pbr 5.4.5 phik 0.10.0 pickleshare 0.7.5 Pillow 8.1.2 pip 21.1.2 pkginfo 1.5.0.1 plac 1.1.3 plotly 4.14.1 plotlydash-tornado-cmd 0.0.6 pluggy 0.13.1 pockets 0.9.1 port-for 0.3.1 preshed 3.0.5 prometheus-client 0.7.1 prometheus-flask-exporter 0.18.2 prompt-toolkit 3.0.5 protobuf 3.12.1 pscript 0.7.5 psutil 5.7.2 psycopg2 2.9.1 pulsar 2.0.2 pulsar-odm 0.7.0 py 1.10.0 pyarrow 3.0.0 pyasn1 0.4.8 pyasn1-modules 0.2.8 pycaret 2.3.1 pycparser 2.20 pyct 0.4.6 pydeck 0.2.0 pyflakes 2.2.0 pygifsicle 1.0.1 PyGithub 1.54.1 Pygments 2.6.1 PyJWT 1.7.1 pyLDAvis 3.2.2 pylint 2.8.3 pylint2junit 1.0.1 pymongo 3.11.2 pynndescent 0.5.2 pyod 0.8.8 pyodbc 4.0.30 pyparsing 2.4.7 pyproj 2.6.1.post1 pyrsistent 0.16.0 pytest 6.2.4 pytest-cov 2.12.0 pytest-mock 3.6.1 pytest-sugar 0.9.4 python-dateutil 2.8.1 python-editor 1.0.4 python-jsonrpc-server 0.3.4 pythreejs 2.2.1 pytz 2020.1 pyviz-comms 0.7.4 PyWavelets 1.1.1 pywin32 227 pywin32-ctypes 0.2.0 pywinpty 0.5.7 PyYAML 5.3.1 pyzmq 19.0.1 qtconsole 4.7.4 QtPy 1.9.0 querystring-parser 1.2.4 rdflib 5.0.0 readme-renderer 26.0 recommonmark 0.7.1 regex 2020.5.14 requests 2.24.0 requests-oauthlib 1.3.0 requests-toolbelt 0.9.1 restructuredtext-lint 1.3.0 retrying 1.3.3 rich 10.1.0 rope 0.17.0 rsa 4.0 rshiny-server-cmd 0.0.2 Rtree 0.9.4 scikit-learn 0.23.2 scikit-plot 0.3.7 scipy 1.5.4 seaborn 0.10.1 selenium 3.141.0 Send2Trash 1.5.0 setuptools 41.2.0 Shapely 1.7.0 simplejson 3.17.2 six 1.15.0 smart-open 5.1.0 smmap 3.0.4 snakeviz 2.1.0 sniffio 1.2.0 snooty-lextudio 1.8.3.dev0 snowballstemmer 2.0.0 sortedcontainers 2.2.2 soupsieve 2.2.1 spacy 2.3.7 SPARQLWrapper 1.8.5 Sphinx 1.8.4 sphinx-autobuild 2021.3.14 sphinx-markdown-tables 0.0.15 sphinx-rtd-theme 0.5.2 sphinxcontrib-napoleon 0.7 sphinxcontrib-websupport 1.2.2 SQLAlchemy 1.4.17 sqlparse 0.4.1 srsly 1.0.5 statsmodels 0.12.2 stevedore 1.32.0 streamlit 0.77.0 streamz 0.6.2 tabulate 0.8.9 tangled-up-in-unicode 0.0.6 tblib 1.7.0 tensorboard 2.5.0 tensorboard-data-server 0.6.1 tensorboard-plugin-wit 1.8.0 tensorflow 2.4.0 tensorflow-estimator 2.4.0 termcolor 1.1.0 terminado 0.8.3 testpath 0.4.4 textblob 0.15.3 thinc 7.4.5 threadpoolctl 2.1.0 toml 0.10.1 toolz 0.10.0 torch 1.5.0+cpu torchvision 0.6.0+cpu tornado 6.1 tqdm 4.59.0 traitlets 4.3.3 traittypes 0.2.1 twine 3.1.1 typed-ast 1.4.3 typer 0.3.2 typing-extensions 3.7.4.2 tzlocal 2.1 umap-learn 0.5.1 urllib3 1.25.9 us 2.0.2 validators 0.18.2 vega-datasets 0.8.0 visions 0.4.4 waitress 2.0.0 wasabi 0.8.2 watchdog 0.10.4 wcwidth 0.1.9 webencodings 0.5.1 websocket-client 1.0.1 Werkzeug 1.0.1 wheel 0.36.2 Whoosh 2.7.4 widgetsnbextension 3.5.1 wordcloud 1.8.1 wrapt 1.12.1 xarray 0.16.2 xlrd 1.2.0 yahooquery 1.0.11 yellowbrick 1.3.post1 yfinance 0.1.63 zict 2.0.0 zipp 3.1.0 zope.event 4.5.0 zope.interface 5.2.0

@MarcSkovMadsen
Copy link
Collaborator

But what works for me is on the server actually. You problem might be notebook related.

I've put in a showcase with code here https://discourse.holoviz.org/t/works-with-ipyleaflet/2755

panel-ipyleaflet.mp4

@dbeniamine
Copy link
Author

Hi,

Thanks for your answer.

I tried your notebook, with ipykernel 5.5.3, but it still does not show the map, just a gray square over my jupyterlab

image

@philippjfr
Copy link
Member

@dbeniamine Can you make sure not to load 'ipywidgets' in the extension?

@philippjfr
Copy link
Member

We should make sure to highlight this comment in the docs:

In the notebook this is not necessary since Panel simply uses the regular notebook ipywidget renderer. Particularly in JupyterLab importing the ipywidgets extension in this way may interfere with the UI and render the JupyterLab UI unusable, so enable the extension with care.

@dbeniamine
Copy link
Author

If I do not specify either ipywidgets or comms='ipywidgets' in the pn.extension() line, I got a blank output with the console issue initially mentionned:

image

Same error if I replace the last line with pn.pane(m) but without the slider on the left.

@rjp23
Copy link

rjp23 commented Jan 11, 2022

Did this get resolved? I'm having the same issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't correct or isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants