Repository navigation
Replies: 1 comment
|
The For the marimo 0.16.5 / Bokeh 3.7.3 versions you gave in the linked Bokeh discussion, you can bypass that URL by putting the complete Bokeh document in an iframe’s import html
import marimo as mo
from bokeh.embed import file_html
from bokeh.resources import INLINE
def _embed_bokeh(plot):
document = file_html(plot, resources=INLINE, title="Bokeh chart")
return mo.Html(
'<iframe title="Bokeh chart" '
'style="width:100%;height:600px;border:0" '
f'srcdoc="{html.escape(document, quote=True)}"></iframe>'
)
mo.hstack([
_embed_bokeh(bokeh_figure01),
_embed_bokeh(bokeh_figure02),
_embed_bokeh(bokeh_figure03),
])Use that as the cell output in place of the current There are two separate pieces here:
Wrapping the figure in This produces standalone Bokeh output: pan/zoom and JavaScript callbacks can work, but Python callbacks need a live Python/Bokeh server. See Bokeh’s |
Uh oh!
There was an error while loading. Please reload this page.
Hi all,
i just asked in bokeh as well, see fore more infos here:
bokeh/bokeh#14329 (comment)
wBokeh charts are displayed in a running marimo workbook, but not after export. Instead this error message is shown.
Couldn't find the requested file /dist/@file/23833-31675-EBmBb5of.html in @marimo-team/frontend.All reactions