Extensions do not render when using bokeh.embed.components / bokeh.embed.file_html APIs
See original GitHub issueI’m attempting to generate HTML that includes extensions (LaTeX) using the bokeh.embed.components
and bokeh.embed.file_html
APIs.
http://bokeh.pydata.org/en/latest/docs/reference/embed.html#bokeh.embed.components
I used the LaTeX example in the documentation as a starting point: http://bokeh.pydata.org/en/latest/docs/user_guide/extensions_gallery/latex.html#userguide-extensions-examples-latex
Please see the attached code (latexTest.py.txt) that illustrates the issues below.
When using the file_html
API, the extension code (LatexLabel) appears to be included in the resulting HTML/script section – however, the figure does not render. In the case of the components
API, the extension code does not appear to be included, and as expected, the figure does not render and the following error message is displayed:
Bokeh Error Module `LatexLabel’ does not exists. The problem may be two fold. Either a model was requested that’s available in an extra bundle, e.g. a widget, or a custom model was requested, but it wasn’t registered before first usage.
References: https://github.com/bokeh/bokeh/issues/647 [Support latex labels] https://github.com/bokeh/bokeh/pull/4914 [Add support for loading external resources in output template] https://github.com/bokeh/bokeh/issues/3193 [desired_num_ticks not working when using custom x_range]
Issue Analytics
- State:
- Created 7 years ago
- Comments:19 (12 by maintainers)
Top GitHub Comments
@mattpap is this a dupe of another existing issue?
It does work, but there are still issues with the placement / layout of the custom (LaTeX) label, as we are trying to develop in #5824. This is a show-stopper for me, and I think many others based on the comments in that issue, as we try to utilize the custom label capability. Thanks for your help.