panel icon indicating copy to clipboard operation
panel copied to clipboard

Panel 0.13.1 not working in Jupyterlite

Open MarcSkovMadsen opened this issue 2 years ago • 1 comments

I was just trying out if the latest version of Panel works in Jupyterlite. It does not.

image

import piplite
await piplite.install(['bokeh', 'jupyter_bokeh', 'panel==0.13.1'])

import panel as pn

pn.extension()

slider = pn.widgets.IntSlider(value=0, start=0, end=10)

slider

I was expecting it to work because of https://twitter.com/PhilippJFR/status/1506070969491898369?s=20&t=9nmyNRWhBE4oDdzsssv8Rg

MarcSkovMadsen avatar Jun 12 '22 04:06 MarcSkovMadsen

Its probably related to Uncaught (in promise) Error: Module @bokeh/jupyter_bokeh, semver range ^3.0.4 is not registered as a

   Uncaught (in promise) Error: Module @bokeh/jupyter_bokeh, semver range ^3.0.4 is not registered as a`

image

MarcSkovMadsen avatar Jun 12 '22 04:06 MarcSkovMadsen

I just tested with Panel 0.14.0. Now its a different error

image

Additional Context

A user is asking here about Panel in Jupyterlite https://discourse.holoviz.org/t/jupyterlite/4405

MarcSkovMadsen avatar Oct 20 '22 07:10 MarcSkovMadsen

Will get a fix into 0.14.1 and then release this evening.

philippjfr avatar Oct 20 '22 09:10 philippjfr

Still not working

image

MarcSkovMadsen avatar Nov 13 '22 15:11 MarcSkovMadsen

The jupyter_bokeh extension has to be bundled installed into the Jupyterlite:

Screen Shot 2022-11-13 at 17 42 46

philippjfr avatar Nov 13 '22 16:11 philippjfr

i.e. to configure this you have to follow these instructions and add jupyter_bokeh as a dependency:

https://jupyterlite.readthedocs.io/en/latest/howto/configure/simple_extensions.html

philippjfr avatar Nov 13 '22 16:11 philippjfr

Try it out on https://panelite.holoviz.org/lab/index.html

philippjfr avatar Nov 13 '22 16:11 philippjfr

I receive an error message: Couldn't find a pure Python 3 wheel for 'widgetsnbextension~=4.0'

riziles avatar Nov 14 '22 01:11 riziles