nonos
nonos is a Python 2D visualization library for planet-disk numerical simulations.
It supports vtk-formatted data from Pluto and Idefix, and dat-formatted data for Fargo-adsg and Fargo3D.
This page illustrates basic examples. For more, read the documentation !
Data Formats
nonos supports the following data formats
- Pluto and Idefix:
data.*.vtk - Fargo-adsg:
gasdens.dat,gasvy*.dat,gasvx*.dat - Fargo3D: same as Fargo-adsg +
gasvz*.dat,gasenergy*.dat
Development status
nonos is considered public beta software: we are actively improving the
design and API, but we are not at the point where we want to bless the
current state as stable yet. We are trying to keep breaking changes to a
minimum, and run deprecation cycles to minimize the pain, however they might
happen in any minor release, so if you rely on nonos for your own work
(thank you !), we strongly encourage you to follow along releases and
upgrade frequently, so we have more opportunities to discuss if something
breaks.
Installation
Get nonos and its minimal set of dependencies as
python -m pip install nonos
Optionally, you can install with the companion command line interface too
python -m pip install "nonos[cli]"
or, to get all optional dependencies (CLI included)
python -m pip install "nonos[all]"
Examples
Building a 2D map
We'll start by defining a GasDataSet object
from nonos.api import GasDataSet
ds = GasDataSet(
43,
geometry="polar",
directory="tests/data/idefix_planet3d",
)
We can select the RHO field, reduce it to a vertical
slice in the midplane, and derive a Plotable object mapping the cartesian 'x', 'y' plane,
all while ensuring the 0th planet lies close to azimuth 0
p = ds["RHO"].vertical_at_midplane().map("x", "y", rotate_with="planet0.dat")
Now let's actually visualize our results
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
ax.set_aspect("equal")
p.plot(
fig,
ax,
log=True,
cmap="inferno",
title=r"$\rho_{\rm mid}$",
)
Visualizing a 1D graph
This time, we'll reduce the RHO field to a single dimension,
via a latitudinal projection, followed by an azimuthal average,
and map the result to the radial axis.
fig, ax = plt.subplots()
(
ds["RHO"]
.latitudinal_projection(theta=3 * 0.05)
.azimuthal_average()
.map("R")
.plot(fig, ax, color="black", title=r"$\Sigma$")
)
Reusing nonos' style
nonos comes with a matplotlib stylesheet, used by nonos-cli, that can be reused
programmatically, without importing the package, using matplotlib API
import matplotlib.style
matplotlib.style.use("nonos.default")
See matplotlib.style's documentation for more.
Metadata
Release files for nonos 0.21.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nonos-0.21.0.tar.gz | 49.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nonos-0.21.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 102.5 kB
Release files / nonos-0.21.0.tar.gz
| Download URL | nonos-0.21.0.tar.gz |
|---|---|
| Size | 49.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9533e9bdb4cacacfd8418da35aa5609b9ed3b3a006fd933385e827f29ec992f
|
|
BLAKE2b-256 checksum How to use checksums |
a185708f730c20eac82444a92d7a4a531e78253367e9f82cd7d6cc6c843cfb11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.
Transparency logRelease files / nonos-0.21.0-py3-none-any.whl
| Download URL | nonos-0.21.0-py3-none-any.whl |
|---|---|
| Size | 53.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eac262d7109e38c0009b65ead80953e0317bb04b9964a7e43d2b21ecaf822f8e
|
|
BLAKE2b-256 checksum How to use checksums |
b3f2a39d20ed9e499153838025d3347ec8fbe83426dd23ef9e9e622ad1d47d2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.
Transparency log