openPMD / openPMD-viewer

:snake: Python visualization tools for openPMD files
https://openpmd-viewer.readthedocs.io/
Other
67 stars 50 forks source link

use `%matplotlib widget` by default #407

Closed BenWibking closed 11 months ago

BenWibking commented 11 months ago

This is necessary even with Jupyter Notebook, not just Jupyterlab. See comment: https://github.com/openPMD/openPMD-api/issues/1572#issuecomment-1862616267.

The matplotlib documentation suggests this rendering backend will work in all modern versions of Jupyter Notebook and Jupyterlab: https://matplotlib.org/stable/users/explain/figure/interactive.html#jupyter-notebooks-jupyterlab.

Fixes https://github.com/openPMD/openPMD-api/issues/1572.

RemiLehe commented 11 months ago

Thanks a lot for fixing this!

ax3l commented 10 months ago

Thank you!

I think we need to fix this comment as well: https://github.com/openPMD/openPMD-viewer/blob/1a3095bd3628bfab12932280b210be722de7d46c/openpmd_viewer/openpmd_timeseries/plotter.py#L424