ideonate / cdsdashboards

JupyterHub extension for ContainDS Dashboards
https://cdsdashboards.readthedocs.io/
Other
199 stars 38 forks source link

Support Panel via panel serve #64

Closed MarcSkovMadsen closed 3 years ago

MarcSkovMadsen commented 3 years ago

I would like to be able to run Panel apps using ContainDS. I don't see that in the list of frameworks.

image

Panel can no longer be started via bokeh serve. It needs to be started via panel serve. But everything else should be the same as Bokeh.

Thanks.

MarcSkovMadsen commented 3 years ago

Ok having looked at https://github.com/ideonate/bokeh-root-cmd/blob/master/bokeh_root_cmd/main.py I can see that you build the server your self instead of running it from the command line. My guess is that main purpose is to get the ready-check.

That will probably work for simple one file panel apps. And I can also see the most simple one working.

import panel as pn
pn.extension()

pn.pane.Markdown("Hello World").servable()

I will close this one for now and return if I cannot serve more complicated Panel apps.

danlester commented 3 years ago

Thank you for this note - it's really useful to have your input from the cutting edge of Panel development!

Great if it still works for now, but please do let me know.

congineer commented 1 year ago

Ok having looked at https://github.com/ideonate/bokeh-root-cmd/blob/master/bokeh_root_cmd/main.py I can see that you build the server your self instead of running it from the command line. My guess is that main purpose is to get the ready-check.

That will probably work for simple one file panel apps. And I can also see the most simple one working.

import panel as pn
pn.extension()

pn.pane.Markdown("Hello World").servable()

I will close this one for now and return if I cannot serve more complicated Panel apps.

Dear @MarcSkovMadsen and @danlester . Does anyone of you get Panel in TLJH cdsdashboards display any pane with more complex data than Markdown or HTML heading/paragraph?

I'm seeing any complex widget like Table Column with .servable() inside JupyterLab's panel extension button iframe, but not upon New Dashboard as the cdsdashboards application window. The dashboard shows only trivial widgets with Markdown and HTML only ignoring all more complex widgets.

Is this a limitation of cdsdashboards?