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

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.1
File Size Uploaded Provenance Actions
omle_viewer-0.5.1.tar.gz 179.4 kB With provenance Details for omle_viewer-0.5.1.tar.gz

Built distribution (wheel)

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

Total release size: 354.4 kB

Release files / omle_viewer-0.5.1.tar.gz

Download URL omle_viewer-0.5.1.tar.gz
Size 179.4 kB
Tags Source
SHA-256 checksum
How to use checksums
eda376359b63a8878f7cdd70a1463a9dbb4e8713d6bd9206dc0ac6a5a7aea149
BLAKE2b-256 checksum
How to use checksums
e2ce3b05d7b8e365768fc45d0876bc4fd8848007639fde07e20be17ebf5ffe18
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 8, 2026.

Transparency log

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

Download URL omle_viewer-0.5.1-py3-none-any.whl
Size 175.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff3d1adcce08d8458ede410f7e10ddda31e786bf2b85c59161e71f2f2e1a60d8
BLAKE2b-256 checksum
How to use checksums
bab5f8d3d50d5b0894e57009f515ad27284716760cf273d51df1937fbc5beb70
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 8, 2026.

Transparency log

Security for omle-viewer 0.5.1

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.1.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 8, 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.1 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