Hi,
I’ve been spending most of the day trying to port my application to latest and greatest holoviz.
I had to disable WebGL for Holoviews, install Bokeh 3.2 to avoid tons of “DeserializationError” errors. I had to put all extensions used in 1 single pn.extensions() call.
Currently, buttons almost never work in my applicaiton. I see that there is some sort of websocket activity, but nothing happens in browser console, nothing happens in VS Code log.
If I run the widget button example it always seems to work:
import panel as pn
pn.extension()
button = pn.widgets.Button(name='Click me', button_type='primary')
text = pn.widgets.TextInput(value='Ready')
def b(event):
text.value = 'Clicked {0} times'.format(button.clicks)
button.on_click(b)
pn.Row(button, text).servable()
However, if I add this to my application somewhere, it sometimes works. When it does not, there are however no errors to be seen anywhere.
Panel Server running on following versions:
Python 3.10.10Panel: 1.1.1Bokeh: 3.2.0Param: 1.13.0
Log when starting:
python -m panel serve src/web_server/dashboard.py src/web_server/camera_image.py src/web_server/assay.py --warm --admin --profiler snakeviz
2023-06-28 15:39:43,193 W-1005 (FIXED_SIZING_MODE): ‘fixed’ sizing mode requires width and height to be set: figure(id=‘p1113’, …)
2023-06-28 15:39:43,195 W-1005 (FIXED_SIZING_MODE): ‘fixed’ sizing mode requires width and height to be set: figure(id=‘p1071’, …)
2023-06-28 15:39:43,195 W-1005 (FIXED_SIZING_MODE): ‘fixed’ sizing mode requires width and height to be set: figure(id=‘p1016’, …)
2023-06-28 15:39:43,215 W-1005 (FIXED_SIZING_MODE): ‘fixed’ sizing mode requires width and height to be set: figure(id=‘p1361’, …)
2023-06-28 15:39:44,002 Starting Bokeh server version 3.2.0 (running on Tornado 6.2)
2023-06-28 15:39:44,003 User authentication hooks NOT provided (default user enabled)
2023-06-28 15:39:44,007 Bokeh app running at: http://localhost:5006/assay
2023-06-28 15:39:44,008 Bokeh app running at: http://localhost:5006/camera_image
2023-06-28 15:39:44,008 Bokeh app running at: http://localhost:5006/dashboard
2023-06-28 15:39:44,008 Starting Bokeh server with process id: 6328
2023-06-28 15:39:44,666 WebSocket connection opened
2023-06-28 15:39:44,668 ServerConnection created
I understand that this is not much to work with. Has anyone else had similar trouble with getting very basic stuff working after upgrading?