Skip to main content

Widgets to use with marimo notebooks

Project description

dr_widget

dr_widget is a library of reusable AnyWidget components that can be dropped into Marimo notebooks. Widgets are organized into two tiers based on their physical shape:

  • Inline widgets (dr_widget.inline) – pure-Python widgets whose JS is a short string literal. Zero build step, minimal deps. Useful for small browser-side helpers.
  • Bundled widgets (dr_widget.bundled) – widgets backed by their own JS workspace (Svelte, React, etc.) that builds to a static/ bundle. Useful when you need a component library or transpilation.

The top-level dr_widget package is intentionally empty so importing from one tier does not drag in the other.

Quick Start

See Development Workflow for install, build, packaging, and notebook commands.

Repository Layout

  • src/dr_widget/ – Python package with two widget tiers.
    • inline/ – pure-Python AnyWidgets (e.g., ActiveHtml, load_dr_runtime()).
    • bundled/config_file_manager/ – Svelte widget workspace (source in src/, build output in static/).
    • bundled/runtime/ – React custom-element runtime (static/runtime.js); proof element <dr-hello>.
  • docs/ – additional reference material (architecture, development workflows).
  • notebooks/config_file_manager_widget.py – Marimo notebook for the Config File Manager widget.
  • notebooks/runtime_hello_widget.py – Marimo notebook for load_dr_runtime() + <dr-hello>.

Documentation

Contributing

  1. Work inside a dedicated branch.
  2. Follow docs/development.md and AGENTS.md before opening a PR.
  3. Update notebooks and docs when you add or change widget behaviour.

Please open an issue if you hit build problems or want to discuss new widgets.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dr_widget-0.2.1.tar.gz (633.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dr_widget-0.2.1-py3-none-any.whl (690.9 kB view details)

Uploaded Python 3

File details

Details for the file dr_widget-0.2.1.tar.gz.

File metadata

  • Download URL: dr_widget-0.2.1.tar.gz
  • Upload date:
  • Size: 633.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.0

File hashes

Hashes for dr_widget-0.2.1.tar.gz
Algorithm Hash digest
SHA256 78aaa04c117116000c69aa2260064ea93d5ec8bf662923830177dfb9320b7791
MD5 571bf7d38e9e7750e29101da596296f8
BLAKE2b-256 fbe885e598dcdf91da12e4c5894381f7585301d70cba020a3ba2e51e7f4026a8

See more details on using hashes here.

File details

Details for the file dr_widget-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: dr_widget-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 690.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.0

File hashes

Hashes for dr_widget-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 95cb74e1b3a7dd9f4b5b71dfd07d6ba5050e4048ed5b9fdf69b8bfa9da6f9358
MD5 db8fd728d67503e27790ba0005805454
BLAKE2b-256 7cfc0f39df6d606e2239f069dc84e5f53f98ea5c4c2c1641b49992c886b15174

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page