Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support specifying a glob of panel apps #65

Open
MarcSkovMadsen opened this issue Apr 27, 2021 · 4 comments
Open

Support specifying a glob of panel apps #65

MarcSkovMadsen opened this issue Apr 27, 2021 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@MarcSkovMadsen
Copy link

Panel (and Bokeh) are capable of serving apps via commands like

panel serve shared/*.ipynb

or

panel serve shared/*.py

When done like this an index page will be served at the root "/" providing access to all the apps served.

In the next version of Panel it will look like

image

You can try it out here https://mybinder.org/v2/gh/holoviz/panel/binder?urlpath=panel/

Please support.

If I can contribute in any way let me know.

Thanks.

@MarcSkovMadsen MarcSkovMadsen added the enhancement New feature or request label Apr 27, 2021
@danlester
Copy link
Member

Thanks for this. I might need to see how it can be built into the bokeh-root-cmd wrapper that serves Panel and Bokeh apps, or whether a different approach for Panel is now needed.

@MarcSkovMadsen
Copy link
Author

Hi @danlester . I would really like a separate entry for Panel.

My hypothesis is that it would be close to https://github.com/ideonate/bokeh-root-cmd/blob/master/bokeh_root_cmd/main.py with some additional functionality inspired by Panels get_server at https://github.com/holoviz/panel/blob/718543ba16d94e5703f3827c79622f46b9021914/panel/io/server.py#L505

@MarcSkovMadsen
Copy link
Author

MarcSkovMadsen commented Apr 29, 2021

My suggestion would be to create a new panel_root_cmd repository and package. The alternative would be to add a --panel flag to the bokeh_root_cmd package. That would also work. What would you prefer @danlester ?

@danlester
Copy link
Member

There are now a few of these 'root-cmd' type packages, so could be worth starting to understand the common components and maybe bring these into one at some point. So a good starting point could be to see if --panel could be built into bokeh-root-cmd.

Or maybe it doesn't really need --panel anyway, and new functionality could be relevant to bokeh-only scripts too.

It's also just worth thinking whether *.ipynb is a bit liberal in the context of ContainDS Dashboards, e.g. notebooks saved there without thinking are suddenly published inadvertently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants