jupyter-book / mystmd

Command line tools for working with MyST Markdown.
https://mystmd.org/guide
MIT License
219 stars 64 forks source link

Issue viewing Panel/hvPlot/Bokeh Figures #1488

Open mgrover1 opened 3 months ago

mgrover1 commented 3 months ago

Description

We are seeing an issue with rendering panel/bokeh visualizations, as described in this issue https://github.com/openradar/erad2024/issues/81

Proposed solution

Not really sure - we tried specifying the extension (as is required with jupyterbook rendering), but that did not resolve the issue.

We tried resolving it with this PR https://github.com/openradar/erad2024/pull/82

Additional notes

This worked with the previous jupyterbook build system, but is now failing with migrating to only using myst.

rowanc1 commented 3 months ago

Thanks for the bug report. cc @stevejpurves

kmuehlbauer commented 2 months ago

@rowanc1 Did you or someone else had time to look into this? Please let us know, of we can be of any further assistance to get to the bottom of the issue. Thanks!

stevejpurves commented 2 months ago

@kmuehlbauer if I get some code examples from here (https://hvplot.holoviz.org/user_guide/Plotting.html) and work with that in an ipynb file that would be representative of your usage?

(Asking as I see you generating notebooks differently in the linked issue and IIRC there are various bokeh/panel options when plotting in notebooks)

kmuehlbauer commented 2 months ago

Thanks for the attention @stevejpurves.

So basically our use of hvplot works in the running notebook. What we are trying to achieve is to render the notebook using nbconvert's ExecutePreprocessor, to later build with myst. This somehow worked back in 2022 with jupyter-book directly (IIRC, without nbconvert).

We tried to use myst --execute incantation, but this didn't work out for some reason, so I went for the nbconvert-approach. I'm happily assisting in getting this resolved.

kmuehlbauer commented 2 months ago

And yes, those examples are representing our use case, more or less..