Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions openpmd_viewer/openpmd_timeseries/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ def step_bw(b):
accord1.set_title(1, 'Slice selection')
accord1.set_title(2, 'Plotting options')
# Complete field container
container_fld = widgets.VBox( children=[accord1, widgets.HBox(
container_fld = widgets.VBox( children=[container_fields, widgets.HBox(
children=[fld_refresh_toggle, fld_refresh_button])])
set_widget_dimensions( container_fld, width=370 )

Expand Down Expand Up @@ -512,7 +512,7 @@ def step_bw(b):
accord2.set_title(1, 'Particle selection')
accord2.set_title(2, 'Plotting options')
# Complete particle container
container_ptcl = widgets.VBox( children=[accord2, widgets.HBox(
container_ptcl = widgets.VBox( children=[container_ptcl_quantities, widgets.HBox(
children=[ptcl_refresh_toggle, ptcl_refresh_button])])
set_widget_dimensions( container_ptcl, width=370 )

Expand All @@ -528,7 +528,7 @@ def step_bw(b):
display(container_ptcl)

# When using %matplotlib widget, display the figures at the end
if matplotlib.get_backend() in ['ipympl', 'widget']:
if matplotlib.get_backend() in ['ipympl', 'widget', 'module://ipympl.backend_nbagg']:
# Disable interactive mode
# This prevents the notebook from showing the figure
# when calling `plt.figure` (unreliable with `%matplotlib widget`)
Expand Down