Skip to main content

Add your description here

Project description

dr_widget

dr_widget is a hybrid Python/Svelte project for building reusable AnyWidget components that can be dropped into Marimo notebooks today and exported to full Svelte apps later. The repository currently ships a file-drop configuration browser, but the layout is designed to host additional widgets.

Quick Start

# Install JS dependencies (root + workspace)
bun install

# Live-reload the file-drop widget in a browser
bun run dev:file-drop

# Produce the optimized bundle used by AnyWidget
bun run build

# Build the Python distributions (wheel + sdist)
uv build

# Launch the Marimo demo notebook
marimo run notebooks/file_widget.py

Prerequisites: Bun ≥ 1.0, Node-compatible environment, Python ≥ 3.11 with uv, and Marimo ≥ 0.17.6.

Repository Layout

  • src/dr_widget/ – Python package exposing AnyWidget classes.
    • widgets/file_drop/ – widget workspace (Svelte source in src/, build output in static/).
      • src/FileDropWidget.svelte – orchestration layer wiring bindings into the panel components.
      • src/lib/hooks/use-file-bindings.ts – shared logic for syncing AnyWidget traitlets.
      • src/lib/components/ – shadcn-style UI primitives and file-drop panels, including a config viewer card with both a tree view and graph view for JSON payloads.
  • docs/ – additional reference material (architecture, development workflows).
  • notebooks/file_widget.py – Marimo notebook that exercises the file-drop widget.

Documentation

Contributing

  1. Work inside a dedicated branch.
  2. Run bun run build, npx svelte-check, and uv build before opening a PR.
  3. Update the notebook and docs when you add or change widget behaviour.
  4. Follow the commit and PR practices outlined in AGENTS.md.

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.1.0.tar.gz (2.0 MB 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.1.0-py3-none-any.whl (2.0 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dr_widget-0.1.0.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.7

File hashes

Hashes for dr_widget-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ec05b6ebf3069d9d427987fcb465aa03280a306e4ffc5818dd095b8fb8ef65cf
MD5 6a36209b7f0664c0e683c7ac354d3f59
BLAKE2b-256 7749bead315be00e69a122425896659951b85ec937bf76532c11be2cf38dc0bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dr_widget-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.7

File hashes

Hashes for dr_widget-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 acb658bccfac93f9f5b852052f5e5a6e33be0327358a97a28af27730eee1d4e7
MD5 e72f33ff9a5a2e1091ea9ddfa6eb56ca
BLAKE2b-256 3fa3ffa863b49b8346093d0607ac3f30b500011dbca57744b52ab13b7d68c707

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