In general, using %matplotlib widget or %matplotlib ipympl should be almost equivalent (see https://github.com/matplotlib/ipympl/issues/529). However, when using openPMD-viewer, the slider works fine when doing %matplotlib ipympl, but does not when doing %matplotlib widget (i.e. the figures are not displayed, when doing `%matplotlib widget).
In general, using
%matplotlib widget
or%matplotlib ipympl
should be almost equivalent (see https://github.com/matplotlib/ipympl/issues/529). However, when usingopenPMD-viewer
, the slider works fine when doing%matplotlib ipympl
, but does not when doing%matplotlib widget
(i.e. the figures are not displayed, when doing `%matplotlib widget).This PR fixes the issue.