☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Using index.html in server application

Community Support
jbeck
jbeck

I have added an index.html file to add custom css_classes. The directory structure is as follows and impliments index.html when I run bokeh serve myapp.

myapp
   +---__init__.py
   +---main.py
   +---templates
    +---index.html

My issue is that I don’t want users to run myapp directly. I want it to be used as a module that they import into their own script and then would run something like bokeh serve user_script.py.

This works, except that the the index.html file is not implemented. So far it seems that the user would be required to make their own script into a package structure and copy the templates directory into their own package. Is there a way to specify for the server to use the index.html file from the package that is being imported and not from the package that contains the users code?

⌁   Link to post

End of archived discussion · Replies are disabled