I’m probably missing something here, but if I have a directory style app, how can I start it with pn.serve?
My basic structure is
myapp
|
+---__init__.py
|
+---main.py
|
+visualizations
+templates
etc. etc. (like is shown in Running a Bokeh server — Bokeh 2.4.3 Documentation)
I would normally launch with panel serve myapp and works great, but I can only get it to launch when I try pn.serve(‘myapp/main.py’) and then I see the following during launch:
It looks like you might be running the main.py of a directory app directly.
If this is the case, to enable the features of directory style apps, you must
call "bokeh serve" on the directory instead. For example:
bokeh serve my_app_dir/
If this is not the case, renaming main.py will suppress this warning.
return _build_application(path, argv)
Just trying to make it easier for other users to start the app if they need to, without entering a laundry list of static-directories