Server can't find "panel.min.js" (404 in terminal)

I am trying to run a very simple panel example.

This is the main.py in the folder “dpan”

import panel as pn

pn.extension()

col = pn.Column(
    pn.widgets.FloatSlider(name='Number'),
    pn.widgets.Select(name='Fruit', options=['Apple', 'Orange', 'Pear']),
    pn.widgets.Button(name='Run'))

col.servable()

I am running:

panel serve dpan 

and get the following error:

404 GET /static/extensions/panel/panel.min.js

I am using panel 0.9.5. I have recreated my anaconda environment but this didn’t make a difference. What is going wrong here? Thanks.

Had the same problem some days ago, but is fixed with setting BOKEH_RESOURCES=cdn as an environment variable. See https://github.com/holoviz/panel/issues/1233 for more information.

2 Likes

Thanks, that was it!

Thanks, that did the trick!
On Windows use:

$Env:BOKEH_RESOURCES="inline"