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 astatic/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 insrc/, build output instatic/).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 forload_dr_runtime()+<dr-hello>.
Documentation
- Architecture Overview – how Python, AnyWidget, and Svelte fit together.
- Development Workflow – commands for widget builds, packaging, and notebooks.
- Repository Guidelines – coding standards, contracts, and contribution checklist.
Contributing
- Work inside a dedicated branch.
- Follow docs/development.md and AGENTS.md before opening a PR.
- 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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dr_widget-0.2.2.tar.gz | 636.5 kB | Without provenance | Details for dr_widget-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dr_widget-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for dr_widget-0.2.2-py3-none-any.whl |
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
|
Security for dr-widget 0.2.2
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.