Skip to main content

OMLE Viewer

PyPI Tests

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.

Want to look before installing? The released viewer is hosted at openmle.github.io/playground — drop a model in and it runs entirely in your browser.

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
omle-viewer               # no file — opens on the drop target

Accepts .json, and .omle / .pb / .bin for the protobuf binary encoding. The file is optional: with no argument the viewer opens empty, ready for a model to be dragged in or JSON pasted. 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.

Metadata

Release files for omle-viewer 0.5.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.5.0
File Size Uploaded Provenance Actions
omle_viewer-0.5.0.tar.gz 177.7 kB With provenance Details for omle_viewer-0.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 351.0 kB

Release files / omle_viewer-0.5.0.tar.gz

Download URL omle_viewer-0.5.0.tar.gz
Size 177.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ed0c1840066c1870806a82a8600eaa1015445c5faed621e5d2998d0a5266e1da
BLAKE2b-256 checksum
How to use checksums
75213b0af3992961275479b7ac3253476ff5fe168fcbef0ad84009c544d21cf8
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 2, 2026.

Transparency log

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

Download URL omle_viewer-0.5.0-py3-none-any.whl
Size 173.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
832490f0cb95dbc08030004a7a4070b3694b7a7b737e86e6f2ba1bb16ea511c7
BLAKE2b-256 checksum
How to use checksums
9d3d4d8982ba99ffc15c97c7b036aeecaff21af23aca96e2576e4ec954caa1c3
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 2, 2026.

Transparency log

Security for omle-viewer 0.5.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.

Select from 2 files

Attestation for omle_viewer-0.5.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 2, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files Full provenance

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