feat: add @runtimed/notebook-preview package#731
Merged
Conversation
Extracts shared output components into a new publishable package: - Add packages/components/ with output renderers (Markdown, JSON, ANSI, etc.) - Move shared-with-iframe components to the new package - Update src/ imports to use @runtimed/components - Update iframe-outputs to import from @runtimed/components - Update Dockerfiles to include components package - Fix eslint ignores for nested dist folders The @runtimed/components package provides React components for rendering notebook cell outputs, designed to be shared between the main app and sandboxed iframe outputs. Co-authored-by: Cursor <cursoragent@cursor.com>
Extracts shared output components into a new publishable package: - Add packages/components/ with output renderers (Markdown, JSON, ANSI, etc.) - Move shared-with-iframe components to the new package - Update src/ imports to use @runtimed/components - Update iframe-outputs to import from @runtimed/components - Update Dockerfiles to include components package - Fix eslint ignores for nested dist folders The @runtimed/components package provides React components for rendering notebook cell outputs, designed to be shared between the main app and sandboxed iframe outputs. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
health is already exported because it's a public file
- Add prebuild script to build @runtimed/components before main build (fixes "Failed to resolve entry for package" error in CI) - Fix prettier formatting in ExecutionCount.tsx Co-authored-by: Cursor <cursoragent@cursor.com>
|
You have run out of free Bugbot PR reviews for this billing cycle. This will reset on February 26. To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial. |
5 tasks
rgbkrk
approved these changes
Feb 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@runtimed/notebook-previewpackage for rendering static notebook previews@runtimed/componentspackage with output renderers/react.htmland/index.htmlfor testingTest plan
pnpm devand verify dev server starts correctlypnpm checkdocker build -f Dockerfile.iframe-outputs .Made with Cursor
Note
Medium Risk
Moderate risk due to introducing new workspace packages and rewiring build/deploy paths (CI, Docker, iframe builds) plus refactoring runtime output rendering imports; failures would surface as build breaks or missing/incorrect output rendering.
Overview
Introduces a new workspace package,
@runtimed/components, that packages the notebook output renderers (including iframe comms +IframeOutput/IframeReactApp), shared UI primitives, Tailwind styles, and demo pages for reuse across apps.Adds
@runtimed/notebook-preview, a standalone Vite app that receives a Jupyter notebook JSON viapostMessage, converts it to@runtimed/schemaOutputData, and renders inputs/outputs using@runtimed/components(plus a separate output-types demo entrypoint).Migrates the main web app and tests off the old
shared-with-iframein-repo components to import from@runtimed/components, adds a new/demo/outputsroute, and updates iframe CSS sources accordingly; also tightens iframe message listener cleanup and adjusts JSON view + ANSI rendering for bundler compatibility.Updates CI and Dockerfiles to ensure workspace builds/install succeed (explicitly building
@runtimed/components, copying its manifests into images, and stripping it from the sync image where unused), expands ESLint ignore globs, and updates the lockfile for the new packages/deps.Written by Cursor Bugbot for commit 98bdffa. This will update automatically on new commits. Configure here.