Skip to content

Conversation

@rgbkrk
Copy link
Member

@rgbkrk rgbkrk commented Feb 5, 2026

Summary

Implements MediaProvider context (Issue #91) and OutputModel widget to close the architectural gap where widget outputs are in DEFAULT_PRIORITY but have no built-in MediaRouter handler. MediaProvider lets applications configure MIME rendering once at the tree root and have all nested MediaRouter instances inherit it automatically. OutputModel displays captured Jupyter outputs in the widget tree.

What's New

  • MediaProvider: React context for shared renderers, priority, unsafe configuration. Supports nesting with renderer merging.
  • OutputModel Widget: ipywidgets OutputModel implementation that renders JupyterOutput[] via OutputArea. Inherits media config from MediaProvider automatically.

Testing

  • pnpm types:check
  • pnpm lint
  • pnpm build

🤖 Generated with Claude Code

Implement MediaProvider (Issue #91) - a React context for shared MIME rendering configuration. This closes the gap where widget outputs were in DEFAULT_PRIORITY but had no built-in handler in MediaRouter. With MediaProvider, applications can inject renderers once at the top of the tree (e.g., a widget renderer) and all nested MediaRouter instances inherit them automatically. OutputModel widget displays captured Jupyter outputs in the widget tree.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Feb 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nteract-elements Ready Ready Preview, Comment Feb 5, 2026 11:38pm

Request Review

Demo creates OutputModel widgets with pumped-in Jupyter outputs:
stream (stdout/stderr), rich HTML (DataFrame), error tracebacks,
and mixed content (JSON + markdown). Also shows OutputWidget
nested in a VBox layout. Includes controls to append/clear outputs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@rgbkrk rgbkrk merged commit 6ebd09c into main Feb 5, 2026
5 checks passed
@rgbkrk rgbkrk deleted the rgbkrk/media-provider branch February 5, 2026 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant