Skip to main content

omle-viewer (Python)

Jupyter display integration and browser CLI for OMLE models — renders the interactive DAG viewer inline in a notebook cell or opens it in the default browser.

Works in JupyterLab, Jupyter Notebook, VS Code notebooks, and Google Colab with no widget extensions required.

Installation

pip install omle-viewer

The viewer bundle ships inside the wheel, and omle — installed as a dependency — reads both JSON and protobuf binary models, so there is nothing else to install and no optional extra to remember.

CLI

omle-viewer model.json
omle-viewer model.omle

Accepts .json, and .omle / .pb / .bin for the protobuf binary encoding. Writes a temporary self-contained HTML file and opens it with webbrowser.open() — nothing is uploaded and no server runs.

Jupyter usage

Import omle_viewer once per session. After that, returning any OMLEModel from a cell renders the interactive diagram automatically:

import omle
import omle_viewer

model = omle.load("model.omle")
model                       # ← renders the DAG viewer inline, no show() needed

Custom height or live-update handle

from omle_viewer import show

w = show(model, height=700)

# In another cell, display an updated model in place:
w.update(updated_model)

Open in browser from Python

from omle_viewer import show_in_browser

show_in_browser(model)

Raw HTML

from omle_viewer import model_repr_html

html = model_repr_html(model, height=500)   # what _repr_html_ returns

Developing from a checkout

The wheel ships a prebuilt static/viewer.html; a git checkout does not, and without it the viewer renders a "not built" placeholder. Build it first, and re-run after changing the viewer source:

cd omle-viewer
./build.sh
pip install -e "python/[dev]"

See CONTRIBUTING.md for the full development setup and the checks a change needs to pass.

Release files for omle-viewer 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for omle-viewer 0.1.0
File Size Uploaded
omle_viewer-0.1.0.tar.gz 175.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for omle-viewer 0.1.0
File Interpreter ABI Platform
omle_viewer-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 347.8 kB

Release files / omle_viewer-0.1.0.tar.gz

Download URL omle_viewer-0.1.0.tar.gz
Size 175.8 kB
Tags Source
SHA-256 checksum
How to use checksums
db08c3718f058559589b6163ec666e9cf488e8c9c7f515859fa1d2d6c789538f
BLAKE2b-256 checksum
How to use checksums
c38beecc53373955503702f042022224417b6a7a8c7c1a57098bbd0ecea66a00
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 Sep 24, 2026.

Transparency log

Release files / omle_viewer-0.1.0-py3-none-any.whl

Download URL omle_viewer-0.1.0-py3-none-any.whl
Size 171.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6eafb657f44057a54f6a07a7fb8635e8d01f277be71c83a1a33f64ec48995e42
BLAKE2b-256 checksum
How to use checksums
0d3bdff34cebe542ffbd48eb82fe0e51e11aeff7358a704ced80aaa70463c450
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 Sep 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page