Replies: 2 comments 2 replies
-
I mentioned on the PR, but will also mention here: Bokeh users will 100% definitely call |
Beta Was this translation helpful? Give feedback.
-
|
Hi all, i have no problems displaying bokeh charts in marimo. Instead this error message is shown:
Within a markdown cell i am using this code: {
mo.hstack(
[
bokeh_figure01,
bokeh_figure02,
bokeh_figure03,
],
widths=[1000] * 3,
)
}using Altair is working fine with the same logic. bokeh-3.7.3 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In #13817 (comment), we identified some issues with displaying bokeh objects in marimo.
output_notebook()does not work in marimo, probably because we don't supportpublish_display_data.Renderers was broken, but that has since been fixed.marimo has custom logic to display Bokeh
Plotobjects, so figures can be output by just including them in the last expression of a cell: https://github.com/marimo-team/marimo/blob/main/marimo/_output/formatters/bokeh_formatters.py#L24.As a hack that perhaps gets us most of the way there, we can simply patch
plotting.showto use our formatting machinery, as we do in this PR: marimo-team/marimo#3796.I'm not very familiar Bokeh's internals, so I'm not sure what a proper fix would entail. Some pointers on marimo's output viewer:
Beta Was this translation helpful? Give feedback.
All reactions