The pyviz jupyterlab extension seem to prevent displaying panels via .app() inside both JupyterLab and the classic notebook. To reproduce, create a new conda environment and install the following:
import panel as pn
pn.extension()
im1 = 'https://upload.wikimedia.org/wikipedia/commons/3/39/PNG_demo_heatmap_Banana.png'
pn.panel(im1)
which shows up fine. However, trying to show the server inside the notebook via .app() does not work:
pn.panel(im1).app('localhost:8888')
The output is just <bokeh.server.server.Server at 0x7fcd45f3e0d0>, but the panel does not display.
When I create another conda environment and don't install the pyviz jupyterlab extension, the bokeh server shows as expected inside the notebook. Is the pyviz extension not needed anymore and can I safely run jupyterlab without it, or might I run into unexpected problems?
I tried in Firefox and without extension in Chromium. Package versions in both environments:
The pyviz jupyterlab extension seem to prevent displaying panels via
.app()
inside both JupyterLab and the classic notebook. To reproduce, create a new conda environment and install the following:Then I tried running:
which shows up fine. However, trying to show the server inside the notebook via
.app()
does not work:The output is just
<bokeh.server.server.Server at 0x7fcd45f3e0d0>
, but the panel does not display.When I create another conda environment and don't install the pyviz jupyterlab extension, the bokeh server shows as expected inside the notebook. Is the pyviz extension not needed anymore and can I safely run jupyterlab without it, or might I run into unexpected problems?
I tried in Firefox and without extension in Chromium. Package versions in both environments:
(I'm trying this as a workaround for https://discourse.holoviz.org/t/how-can-i-replace-part-of-a-panel-via-a-selection-change-in-a-bokeh-figure/701 so any input there is appreciated as well)