I would like to be able to create standalone html dashboards with panel and have all plots in external pngs (not embedded) so the html is a reasonable size. Is that possible? I have a mix of matplotilb and panel + matplotlib and am converting from markdown notebooks to html in the context of jupyterbook. This works for regular matplotlib cells but not panel. Any advice helpful, including where else to seek help.
A simple example below:
import panel as pn
import matplotlib.pyplot as plt
pn.extension()
I use jupyterbook which itself uses myst-nb. I realize this may not be a panel issue specifically or maybe is an issue with how panel and jupyterbook / myst-nb interact. Thanks so much for your responses and help.
Basic example:
_config.yml
title: My sample book
author: The Jupyter Book Community
execute:
execute_notebooks: force
It works for me also but for the straight matplotlib cell, the plot image gets saved to a png and not as an encoded string in the html. The panel tab images get stored in the html and if you have a lot of tabs then the html gets very large. Is that the case for your run above? Im hoping for a solution that always stores images external to the html.