bokeh: Extensions do not render when using bokeh.embed.components / bokeh.embed.file_html APIs
I’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]
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 19 (12 by maintainers)
@mattpap is this a dupe of another existing issue?