I’m trying to use a custom Bokeh Theme with my Panel app, that I later convert to a standalone HTML, but couldn’t find any public API that would help me do so.
My best idea was to overwrite theme on the _Document type:
It works, but is ugly and involves accessing “private” attribute and making module-wide change. Am I missing something or should I post an enhancement idea?
I know HoloViews opts.defaults is an option, but still would like to work with Bokeh directly in some cases.
Well, hello
Thank you for your reply. Templates combined with custom CSS/JS are a powerful tool and your work looks truly great. I’m aware this functionality is available since I’ve read Panel’s and Param’s user guides and code before posting a question. My thinking was that Bokeh is an internal part of this ecosystem, so there must be a function/attribute/ctxmanager I’m missing allowing me to do, what I’m looking for.
I’m going to analyze your work and try to find a generic way to apply a custom theme to my Panel apps. Before I discovered Panel I’ve maintained my own, but always missing something, panel-like library and it took me a lot of time, but also allowed me to conform to brand requirements. Personally I like crunching data, but reality is that visualization is equally (if not more) important, so I keep my fingers crossed that this part of every analytics/data-scientist’s work is also taken into account by Panel developers
Personally I’m spending a lot of time of improving templates, layout and theming for Panel because I believe that is the missing thing compared to the alternative python frameworks.
I know @philippjfr is has some general templates on the roadmap. And he is also working on enabling the use of templates within an app. I believe that will be powerfull as well. See https://github.com/holoviz/panel/pull/1343