# View Use {func}`view ` to open a grid file or fieldbag file in JCMview. ## Open A Grid File Pass the path to an existing `grid.jcm` file: ```python import jcmsuite jcmsuite.view("examples/mie2d/grid.jcm") ``` {func}`view ` starts JCMview in detached mode and returns `None` after it starts the viewer process. The grid file must already exist. Use [Geo](geo.md) when you need to generate `grid.jcm` before you open it. ## Open A Fieldbag File Pass the path to an existing fieldbag file to inspect field data: ```python jcmsuite.view("project_results/fieldbag.jcm") ``` The fieldbag file must already exist. ## Runtime Conditions {func}`view ` requires a working JCMsuite context with the `JCMview` binary. It raises {class}`InvalidConfigurationError ` when the input file does not exist. It raises {class}`RuntimeContextError ` when JCMview is unavailable. The viewer requires a graphical environment. A viewer launch can fail or have no visible effect in a headless session or an SSH-only session. See these complete runnable tutorials: - [Generate and view a default mesh](../tutorials/core/geo_view/01_default.md). - [Generate and view a coarse mesh](../tutorials/core/geo_view/02_coarse.md). - [View field data](../tutorials/core/geo_view/04_view_fieldbag.md).