I recently found I could make all my matplotlib figures with SVG by default in my jupyterlab notebooks with
import matplotlib.pyplot as plt
%matplotlib inline
%config InlineBackend.figure_formats = ['svg']
However, if I refresh the page, the figures disappear, leaving behind
<Figure size 864x576 with 1 Axes>
This effect does not occur without changing the inline backend. My plotly figures also still show up after a refresh. I would prefer not to have to re-run the cells. Looking at the actual ipynb file, the SVG is right there in the actual file. How can I get this figure to show without re-running the cell?
from svg figures hidden in jupyterlab after some time
No comments:
Post a Comment