Skip to main content

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.

Metadata

Release files for dr-widget 0.2.2

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

Source distribution (sdist)

Source distribution for dr-widget 0.2.2
File Size Uploaded
dr_widget-0.2.2.tar.gz 636.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dr-widget 0.2.2
File Interpreter ABI Platform
dr_widget-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 1.3 MB

Release files / dr_widget-0.2.2.tar.gz

Download URL dr_widget-0.2.2.tar.gz
Size 636.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9bc23e4ca98a3331dde99b5c413912e2c5705386cc49d58f8030504eeb67608f
BLAKE2b-256 checksum
How to use checksums
5608b3f821b1da27d3acce23e38fa9a494154185a666346e46d5c6aaa830d237
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.0

Release files / dr_widget-0.2.2-py3-none-any.whl

Download URL dr_widget-0.2.2-py3-none-any.whl
Size 695.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4cd1a26c04e8087b7fd869fb4e336c045dc689b36c4387607acc33c8c9ca450b
BLAKE2b-256 checksum
How to use checksums
0c04762f60c54608d1edef2c770dde836507c884662b329d84ac45e88cce285d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.0

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.5

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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