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.2.tar.gz (636.5 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.2-py3-none-any.whl (695.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dr_widget-0.2.2.tar.gz
Algorithm Hash digest
SHA256 9bc23e4ca98a3331dde99b5c413912e2c5705386cc49d58f8030504eeb67608f
MD5 fba8049ecd17ce7e53e164246ac8b10f
BLAKE2b-256 5608b3f821b1da27d3acce23e38fa9a494154185a666346e46d5c6aaa830d237

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dr_widget-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4cd1a26c04e8087b7fd869fb4e336c045dc689b36c4387607acc33c8c9ca450b
MD5 9815e24b8ca38a358ba016c75282bda8
BLAKE2b-256 0c04762f60c54608d1edef2c770dde836507c884662b329d84ac45e88cce285d

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