You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm creating a larger app where I optionally want to display Ipywidgets/ IPyleaflet if a button is clicked. I can see that in order for ipyleaflet to get loaded on button click I need to "ipywidgets" when I run pn.extension. This is not mentioned in the reference guide https://panel.holoviz.org/reference/panes/IPyWidget.html#panes-gallery-ipywidget.
Solution
Replace pn.extension with pn.extension("ipywidgets") in the reference guide.
Additional Context
If I instantiate ipyleaflet as a part of serving the application ipyleaflet loads without problems.
The text was updated successfully, but these errors were encountered:
It's a slightly hairy issue, the problem is that if you load pn.extension('ipywidgets') in JupyterLab this will break the entire JupyterLab UI, which is why for the notebook we use a completely separate ipywidgets implementation. That said the reference guide is exactly the right place to explain those caveats.
I'm creating a larger app where I optionally want to display Ipywidgets/ IPyleaflet if a button is clicked. I can see that in order for ipyleaflet to get loaded on button click I need to "ipywidgets" when I run
pn.extension
. This is not mentioned in the reference guide https://panel.holoviz.org/reference/panes/IPyWidget.html#panes-gallery-ipywidget.Solution
Replace
pn.extension
withpn.extension("ipywidgets")
in the reference guide.Additional Context
If I instantiate ipyleaflet as a part of serving the application ipyleaflet loads without problems.
The text was updated successfully, but these errors were encountered: