This package contains a set of tools to load and visualize the contents of a set of openPMD files (typically, a timeseries).
To install this package :
- Clone this repository using
git
git clone https://github.com/openPMD/openPMD-viewer.git
cd
into the directoryopenPMD-viewer
and run
python setup.py install
The interactive GUI for IPython Notebook is not
operational by default.
This is because it requires dependencies that may be difficult to
install on some systems. If you wish to have the interactive GUI
working, install the
IPython Notebook
(now part of the Jupyter project) by hand:
conda install jupyter
(for the
Anaconda
distribution) or pip install jupyter
(for the other Python distributions)
NB: For NERSC users, it is not necessary to
install the above package, as NERSC provides it when logging to
https://ipython.nersc.gov.
Therefore, NERSC users only need to install the openPMD-viewer
package itself.
The routines of openPMD viewer can be used in two ways :
-
Use the Python API, in order to write a script that loads the data and produces a set of pre-defined plots.
-
Use the interactive GUI inside the IPython Notebook, in order to interactively visualize the data.
The notebooks in the folder tutorials/
demonstrate how to use both
the API and the interactive GUI. You can view these notebooks online
here,
or, alternatively, you can run them on your local computer by typing:
ipython notebook tutorials/
NB: For NERSC users, you can run the tutorials on a
remote machine by logging in at
https://ipython.nersc.gov, and by
navigating to your personal copy of the directory openPMD-viewer/tutorials
.
If you wish to use the interactive GUI, the installation of openPMD-viewer
provides
a convenient executable which automatically
creates a new pre-filled notebook and opens it in a
browser. To use this executable, simply type in a regular terminal:
openPMD_notebook
(This executable is installed by default when running python setup.py install
.)
We welcome contributions to the code! Please read this page for guidelines on how to contribute.