openmc.plot_inline

openmc.plot_inline(plots, openmc_exec='openmc', cwd='.', convert_exec='convert')[source]

Display plots inline in a Jupyter notebook.

This function requires that you have a program installed to convert PPM files to PNG files. Typically, that would be ImageMagick which includes a convert command.

Parameters:
  • plots (Iterable of openmc.Plot) – Plots to display
  • openmc_exec (str) – Path to OpenMC executable
  • cwd (str, optional) – Path to working directory to run in
  • convert_exec (str, optional) – Command that can convert PPM files into PNG files
Raises:

subprocess.CalledProcessError – If the openmc executable returns a non-zero status