# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 2
#     language: python
#     name: python2
# ---

# This is a pre-filled notebook, for the visualization of openPMD files.
#
# - Modify the path in cell 2, so that it points to your data
# - Click `Cell > Run all` in the above menu

# Import relevant packages and setup visualization
# NB: The default setup produces pop-up windows for the plots.
# To include the plots in the notebook, use `%matplotlib notebook`.
from opmd_viewer import OpenPMDTimeSeries
# %matplotlib

# Point to the folder containing the openPMD files
ts = OpenPMDTimeSeries('./diags/hdf5/')

# Create the interactive GUI
ts.slider()

StarcoderdataJupyterScriptsDedupFiltered