question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extensions do not render when using bokeh.embed.components / bokeh.embed.file_html APIs

See original GitHub issue

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]

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:19 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
bryevdvcommented, Dec 10, 2016

@mattpap is this a dupe of another existing issue?

0reactions
arossi1commented, Mar 8, 2017

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Embedding Bokeh content — Bokeh 2.4.3 Documentation
This function returns a <script> that contains the data for your plot and provides a target <div> to display the plot view. You...
Read more >
Bokeh — Panel v0.14.2 - HoloViz Panel
The Bokeh pane allows displaying any displayable Bokeh model inside a Panel app. Since Panel is built on Bokeh internally, the Bokeh model...
Read more >
Embedding Bokeh graphs while maintaining linked axis
I added script and div in the placeholders of my html template, which is then loaded with Flask. Everything works fine, but the...
Read more >
Deploying Bokeh Apps — HoloViews v1.15.3
combining HoloViews plots with custom Bokeh plots to quickly write highly ... to render components to a Bokeh model which can be rendered...
Read more >
Bokeh - freshcode.club
#5353 component: bokehjs Extensions do not render when using bokeh.embed.components / bokeh.embed.file_html apis. - #5416 component: bokehjs Multiple model ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found