Octarine is the eighth color of the Discworld's spectrum, which is described as the color of magic itself. Only wizards and cats can see it.
Octarine
A minimalist, easy-to-use, high-performance 3D viewer. Octarine is built on top of the excellent
pygfx WGPU rendering engine which does most of the heavy lifting - we're simply
abstracting away some of the boiler plate code for you.
Rationale 💭
Why another 3D viewer? There are plenty options out there:
vedo, ipygany, polyscope, napari, fury, plotly or pyvista to name but a few. All of these are great in their own right but I wanted something (a) without heavy dependencies (i.e. no VTK), (b) that lets me interactively explore my data in both REPL and Jupyter and (c) is very performant. None of the existing solutions ticked all those boxes for me.
Octarine tries to fill that gap:
- Lightweight with very few direct or indirect dependencies.
- Works in both Jupyter and REPL.
- High performance: a mesh with 15M faces renders with 80 fps at 1080p on a 2023 MacBook Pro.
Features ✨
- Objects: meshes, points, lines, volumes, tubes and sparse volumes (tens of millions of voxels, including run-length encoded ones) - see Adding Objects
- Looks good out of the box: shadows, ambient occlusion and a light that follows the camera are on by default; environment lighting, matcaps, outlines, silhouettes, subsurface scattering, depth of field, tone mapping and gradient backgrounds are one call away - see Effects & Shading
- Animations: orbit, fly between views and zoom, then play it in the viewer or render it to
.mp4,.gifor PNGs - see Animations - Many objects: optionally merge objects into fewer draw calls for scenes made of thousands of small objects, while still hiding, colouring and picking them one by one - see Managing Objects
- Controls: a control panel with legend, effects, screenshots and animations; keep the cameras of several viewers in sync - see Viewer Controls
Installation 🚀
pip install "octarine3d[all]"
Octarine requires Python 3.11 or later. The above will install the minimal requirements plus PySide6 and
jupyter_rfb as window managers for IPython/shell and Jupyter, respectively. Check out the Install Instructions
for details.
Quickstart 🔥
# Create a Viewer instance
from octarine import Viewer
v = Viewer()
# Add random points as scatter
import numpy as np
points = np.random.rand(10, 3) # 10 random points
v.add(points)
# Clear scene
v.clear()
# Add a mesh (see also `Viewer.add_mesh`)
import pygfx as gfx
m = gfx.geometries.mobius_strip_geometry()
v.add(m, color='b')
# Close the viewer
v.close()
Want to learn more?
Head over to the Documentation!
Want to contribute?
We welcome all kinds of contributions. For example:
- reports of bugs, broken examples, etc.
- feature requests
- pull requests with bug fixes or new features
If you already know what needs doing, feel free to open a pull request right away. When in doubt please open an issue so we can discuss the best way to address the issue.
Development 💨
Tests
To run the test suite:
pip install -e .[dev]
pytest -v
Most tests render with an offscreen canvas, so they need a working GPU driver but no window. Tests for the Qt
control panel are run if PySide6 is installed.
Docs
To generate the documentation:
pip install -e .[docs]
mkdocs build
Metadata
Release files for octarine3d 0.9.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 | Provenance | Actions |
|---|---|---|---|---|
| octarine3d-0.9.0.tar.gz | 339.6 kB | With provenance | Details for octarine3d-0.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| octarine3d-0.9.0-py3-none-any.whl | Python 3 | none | any | Details for octarine3d-0.9.0-py3-none-any.whl |
Total release size: 627.1 kB
Release files / octarine3d-0.9.0.tar.gz
| Download URL | octarine3d-0.9.0.tar.gz |
|---|---|
| Size | 339.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7b699385df995b788641f2665bf0044704030414b76c8af7fa243a60666b71da
|
|
BLAKE2b-256 checksum How to use checksums |
b187652328a9169c0e3b7e62b0513496af193cba6789451c375797d6258fce74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 21, 2026.
Transparency logRelease files / octarine3d-0.9.0-py3-none-any.whl
| Download URL | octarine3d-0.9.0-py3-none-any.whl |
|---|---|
| Size | 287.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d2bb30608de98e42b8a77058e77a836ddbde15140814b6335317003079bc8fa
|
|
BLAKE2b-256 checksum How to use checksums |
c911b89721958b8e8fd0ce784f0acff07aef08ad4d00f4f9b71204f9ccda3050
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 21, 2026.
Transparency logSecurity for octarine3d 0.9.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for octarine3d-0.9.0.tar.gz
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 Nov 21, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.