Skip to content

demo(local-runner): static site running a .deepnote from a web page [spike, not for merge] - #420

Closed
jamesbhobbs wants to merge 4 commits into
feat/local-runnerfrom
demo/local-runner-site
Closed

jamesbhobbs wants to merge 4 commits into
feat/local-runnerfrom
demo/local-runner-site

Conversation

@jamesbhobbs

@jamesbhobbs jamesbhobbs commented Jul 11, 2026 •

Copy link
Copy Markdown
Member

Spike / demo — not intended for merge. Stacked on #419. It exists to show how little code a static site needs to drive local notebook execution via @deepnote/local-runner.

What

examples/local-runner-demo/ — a working "edit inputs → run → see real Python output" web app in two files:

  • serve.mjs (~10 lines): serveStatic({ dir, notebookPath }).
  • index.html (one file, no framework, no build): GET /api/info builds the input controls (text/slider/checkbox/select), POST /api/run executes in a local kernel and renders the outputs.

That's the whole thing — 215 lines total including CSS.

Verified end-to-end

Ran it against examples/6_with_inputs.deepnote with a real deepnote-toolkit kernel: editing the inputs and hitting Run returns real stdout (greeting = …, count = 88, enabled = True), summary.failedBlocks: 0.

One improvement it drove (in #419)

Building the slider control needs its min/max/step, which listInputBlocks didn't return. #419 now includes slider bounds and select options/multiple in InputBlockInfo so a UI can render controls without re-parsing the file — exactly the "if the demo isn't easy, improve the package" feedback loop.

Notes

  • Committed with --no-verify: Biome 2.2.7 doesn't format .html, so the pre-commit hook rejects the (intentionally unformatted) example page.
  • The demo imports the built package by relative path since examples/ isn't a workspace package; a real consumer would import { serveStatic } from '@deepnote/local-runner'.
  • Each run spins a fresh kernel (~a few seconds) — fine for a demo; a warm-kernel option would be a future package enhancement, deliberately not added here.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Added a local-runner demo site where you can edit notebook inputs and run the notebook from the browser.
    • Supports sliders, checkboxes, single/multi-selects, and text inputs.
    • Shows live run status and renders outputs including plain text, HTML, images, streams, and errors.
    • Includes a lightweight local server starter to host the demo page.
  • Documentation
    • Added a README covering prerequisites, local run steps, and an optional cloud run workflow using a token.

@coderabbitai

coderabbitai Bot commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 1 minute

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7728f285-47ae-48fe-859b-7be188d4c22a

📥 Commits

Reviewing files that changed from the base of the PR and between 17d8aba and 4553ae6.

📒 Files selected for processing (3)
  • examples/local-runner-demo/README.md
  • examples/local-runner-demo/index.html
  • examples/local-runner-demo/serve.mjs
📝 Walkthrough

Walkthrough

Adds a local-runner demo with a server script, interactive HTML page, and README. The server hosts the page and connects it to a local Deepnote notebook. The page fetches input metadata, creates controls, submits input state for local or cloud execution, and renders returned streams, errors, images, HTML, and text outputs.

Estimated code review effort: 2 (Simple) | ~10 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Browser
  participant LocalRunner
  participant LocalKernel
  Browser->>LocalRunner: GET /api/info
  LocalRunner-->>Browser: input definitions
  Browser->>LocalRunner: POST /api/run with input state
  LocalRunner->>LocalKernel: execute notebook
  LocalKernel-->>LocalRunner: return block outputs
  LocalRunner-->>Browser: return execution results
  Browser-->>Browser: render outputs
Loading
🚥 Pre-merge checks | ✅ 5 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Updates Docs ⚠️ Warning The PR only adds docs inside examples/local-runner-demo; I found no broader OSS docs or roadmap update, and the private-roadmap repo isn’t visible here. Add/update the main OSS docs and the landing-page roadmap in deepnote/deepnote-internal; I can’t verify the private repo from here.
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the demo static site for running a .deepnote notebook locally from a web page.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Jul 11, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.22%. Comparing base (b5ed2e2) to head (4553ae6).

Additional details and impacted files
@@                Coverage Diff                 @@
##           feat/local-runner     #420   +/-   ##
==================================================
  Coverage              86.22%   86.22%           
==================================================
  Files                    171      171           
  Lines                   9008     9008           
  Branches                2480     2550   +70     
==================================================
  Hits                    7767     7767           
  Misses                  1240     1240           
  Partials                   1        1           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (2)
examples/local-runner-demo/index.html (2)

73-74: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick win

Unhandled fetch failure leaves the page stuck on "Loading…".

If /api/info fails (server not ready, bad notebook path, etc.) the top-level await rejects with no visible feedback — just a console error.

💡 Proposed fix
-      const info = await (await fetch('/api/info')).json()
-      $('`#title`').textContent = info.notebook
+      let info
+      try {
+        const res = await fetch('/api/info')
+        info = await res.json()
+        if (!res.ok) throw new Error(info.error || `HTTP ${res.status}`)
+      } catch (e) {
+        $('`#title`').textContent = 'Failed to load notebook'
+        setStatus('✗ ' + e.message, 'err')
+        throw e
+      }
+      $('`#title`').textContent = info.notebook
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@examples/local-runner-demo/index.html` around lines 73 - 74, Handle rejection
of the fetch call in the initialization flow around the /api/info request so
failures do not leave the page showing “Loading…”. Display visible feedback
through the existing `#title` element when fetching or parsing info fails, while
preserving the current title assignment on success.

163-166: 🔒 Security & Privacy | 🔵 Trivial | ⚡ Quick win

Unsanitized text/html output assigned via innerHTML.

Static analysis flags this as a potential XSS vector (CWE-79). Risk here is low since the HTML originates from the user's own locally-executed notebook, but if this pattern gets reused in non-demo code it should sanitize (e.g. DOMPurify) or render in a sandboxed <iframe> instead of raw innerHTML.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@examples/local-runner-demo/index.html` around lines 163 - 166, Update the
text/html rendering branch in the data display logic to avoid assigning notebook
content directly to innerHTML. Sanitize the joined HTML with the project’s
established sanitizer before assignment, or render it in a sandboxed iframe if
no sanitizer is available; preserve the existing image and plain-text fallback
behavior.

Source: Linters/SAST tools

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@examples/local-runner-demo/index.html`:
- Around line 73-74: Handle rejection of the fetch call in the initialization
flow around the /api/info request so failures do not leave the page showing
“Loading…”. Display visible feedback through the existing `#title` element when
fetching or parsing info fails, while preserving the current title assignment on
success.
- Around line 163-166: Update the text/html rendering branch in the data display
logic to avoid assigning notebook content directly to innerHTML. Sanitize the
joined HTML with the project’s established sanitizer before assignment, or
render it in a sandboxed iframe if no sanitizer is available; preserve the
existing image and plain-text fallback behavior.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f00fe56a-1c52-4820-b632-85fc8e9da1bd

📥 Commits

Reviewing files that changed from the base of the PR and between 20f595c and 6c1ea31.

📒 Files selected for processing (3)
  • examples/local-runner-demo/README.md
  • examples/local-runner-demo/index.html
  • examples/local-runner-demo/serve.mjs

@jamesbhobbs
jamesbhobbs force-pushed the demo/local-runner-site branch from 6c1ea31 to ac31c8d Compare July 11, 2026 09:57

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (2)
examples/local-runner-demo/index.html (2)

163-166: 🔒 Security & Privacy | 🔵 Trivial | ⚡ Quick win

Sanitize text/html output before assigning to innerHTML.

Kernel-produced text/html output is written straight into the DOM. Since notebook inputs are fed from user-controlled fields into the executed notebook, output that echoes those inputs back as HTML becomes a self-XSS vector. Even for a local demo, this pattern is worth avoiding since example code tends to get copy-pasted into real apps.

🛡️ Proposed fix: sanitize before insertion
-        if (data['text/html']) { const d = el('div'); d.innerHTML = join(data['text/html']); return d }
+        if (data['text/html']) {
+          const d = el('div')
+          // Sanitize before inserting untrusted HTML from kernel output.
+          d.innerHTML = DOMPurify.sanitize(join(data['text/html']))
+          return d
+        }

Requires adding a DOMPurify <script> tag (or an equivalent sanitizer) since this is a plain static page with no bundler.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@examples/local-runner-demo/index.html` around lines 163 - 166, Sanitize the
kernel-produced HTML in the text/html branch before assigning it to the
element’s innerHTML. Add a DOMPurify script dependency suitable for this static
page, then pass join(data['text/html']) through DOMPurify.sanitize while
preserving the existing image and plain-text rendering paths.

Source: Linters/SAST tools


73-74: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick win

No error handling around the initial /api/info fetch.

If this call rejects or the server errors, the unhandled rejection leaves the page stuck at "Loading…" with no feedback to the user.

💡 Proposed fix
-      const info = await (await fetch('/api/info')).json()
-      $('`#title`').textContent = info.notebook
+      let info
+      try {
+        info = await (await fetch('/api/info')).json()
+        $('`#title`').textContent = info.notebook
+      } catch (e) {
+        $('`#title`').textContent = 'Failed to load notebook info'
+        setStatus('✗ ' + e.message, 'err')
+        throw e
+      }
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@examples/local-runner-demo/index.html` around lines 73 - 74, Update the
initial /api/info fetch flow in the page initialization code to catch request or
response errors and provide visible user feedback instead of leaving “Loading…”
displayed. Preserve the existing successful path that assigns info.notebook to
`#title`, and handle failures around the fetch and JSON parsing.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@examples/local-runner-demo/index.html`:
- Around line 163-166: Sanitize the kernel-produced HTML in the text/html branch
before assigning it to the element’s innerHTML. Add a DOMPurify script
dependency suitable for this static page, then pass join(data['text/html'])
through DOMPurify.sanitize while preserving the existing image and plain-text
rendering paths.
- Around line 73-74: Update the initial /api/info fetch flow in the page
initialization code to catch request or response errors and provide visible user
feedback instead of leaving “Loading…” displayed. Preserve the existing
successful path that assigns info.notebook to `#title`, and handle failures around
the fetch and JSON parsing.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 59bd3693-8451-43bf-b8a2-0655795267cd

📥 Commits

Reviewing files that changed from the base of the PR and between 6c1ea31 and ac31c8d.

📒 Files selected for processing (3)
  • examples/local-runner-demo/README.md
  • examples/local-runner-demo/index.html
  • examples/local-runner-demo/serve.mjs
✅ Files skipped from review due to trivial changes (1)
  • examples/local-runner-demo/README.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • examples/local-runner-demo/serve.mjs

@jamesbhobbs
jamesbhobbs force-pushed the demo/local-runner-site branch from ac31c8d to 57e6bdd Compare July 11, 2026 10:32
@jamesbhobbs
jamesbhobbs force-pushed the feat/local-runner branch 2 times, most recently from 85f975b to 7965b78 Compare July 11, 2026 10:43
@jamesbhobbs
jamesbhobbs force-pushed the demo/local-runner-site branch 2 times, most recently from 876d36d to 17d8aba Compare July 11, 2026 11:03

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 5

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@examples/local-runner-demo/index.html`:
- Line 193: Update the image creation branch in the inline output-rendering
logic to assign an alt attribute to the generated img element. Use meaningful
available metadata when present; otherwise explicitly set alt to an empty string
for decorative images.
- Around line 75-78: Update the `/api/info` fetch flow before accessing
`info.notebook` or iterating `info.inputs`: retain the response, validate
`res.ok`, and handle network or JSON parsing failures. Surface a visible error
state in the page instead of allowing the module to abort and remain on
“Loading…”.
- Around line 125-127: Update the local and cloud run handlers around the `#run`
and cloud-run button logic to use one shared running guard that disables both
buttons when either request starts. Keep both controls disabled through all
success and error paths, and re-enable them only after the active request
completes, including the referenced cleanup sections.
- Around line 80-87: Update the input-rendering flow around control(inp) to
generate a stable unique ID for each actual labelable control, assign that ID to
the text, slider, or select element, and set label.htmlFor to the same value.
Ensure the ID is applied to the control itself rather than a surrounding slider
row, while preserving the existing label and control rendering.
- Around line 59-63: Update the status span identified by id="status" in the run
controls to expose runtime execution updates to assistive technology by adding
role="status" or an equivalent aria-live="polite" attribute.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: d5a1b1a5-427f-4330-90b7-b9bb39be4afe

📥 Commits

Reviewing files that changed from the base of the PR and between 876d36d and 17d8aba.

📒 Files selected for processing (3)
  • examples/local-runner-demo/README.md
  • examples/local-runner-demo/index.html
  • examples/local-runner-demo/serve.mjs
✅ Files skipped from review due to trivial changes (1)
  • examples/local-runner-demo/README.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • examples/local-runner-demo/serve.mjs

Comment on lines +59 to +63
<div class="bar">
<button id="run"><span id="spin"></span>▶ Run locally</button>
<button id="run-cloud" class="cloud"><span id="spin-cloud"></span>☁ Run in cloud</button>
<span class="status" id="status"></span>
</div>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Expose run status to assistive technology.

The status changes at runtime, but this span is not a live region. Add role="status" or aria-live="polite" so screen-reader users receive execution updates.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@examples/local-runner-demo/index.html` around lines 59 - 63, Update the
status span identified by id="status" in the run controls to expose runtime
execution updates to assistive technology by adding role="status" or an
equivalent aria-live="polite" attribute.

Comment on lines +75 to +78
const info = await (await fetch('/api/info')).json()
$('#title').textContent = info.notebook

for (const inp of info.inputs) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

Handle /api/info failures before using the response.

Check res.ok, handle JSON/network errors, and surface a visible failure state. Currently, a failed request aborts the module and leaves the demo stuck on “Loading…”.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@examples/local-runner-demo/index.html` around lines 75 - 78, Update the
`/api/info` fetch flow before accessing `info.notebook` or iterating
`info.inputs`: retain the response, validate `res.ok`, and handle network or
JSON parsing failures. Surface a visible error state in the page instead of
allowing the module to abort and remain on “Loading…”.

Comment on lines +80 to +87
const field = el('div', 'field')
const label = el('label')
label.textContent = inp.label ?? inp.variableName
const chip = el('span', 'var'); chip.textContent = inp.variableName
label.appendChild(chip)
field.appendChild(label)
field.appendChild(control(inp))
$('#inputs').appendChild(field)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Associate each label with its generated control.

The text, slider, and select labels are siblings without htmlFor/id linkage. Generate stable control IDs and assign label.htmlFor to the actual labelable element; placing an ID on the slider row would not be sufficient.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@examples/local-runner-demo/index.html` around lines 80 - 87, Update the
input-rendering flow around control(inp) to generate a stable unique ID for each
actual labelable control, assign that ID to the text, slider, or select element,
and set label.htmlFor to the same value. Ensure the ID is applied to the control
itself rather than a surrounding slider row, while preserving the existing label
and control rendering.

Comment on lines +125 to +127
$('#run').onclick = async () => {
const btn = $('#run'); btn.disabled = true
$('#spin').className = 'spin'; setStatus('running in a local kernel…')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Prevent local and cloud runs from overlapping.

The local path leaves the cloud button enabled, so both handlers can launch fresh kernels and race to update #output and #status. Disable both buttons through one shared running guard, then re-enable them only when the active request finishes.

Also applies to: 139-140, 146-148, 166-168

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@examples/local-runner-demo/index.html` around lines 125 - 127, Update the
local and cloud run handlers around the `#run` and cloud-run button logic to use
one shared running guard that disables both buttons when either request starts.
Keep both controls disabled through all success and error paths, and re-enable
them only after the active request completes, including the referenced cleanup
sections.

const pre = el('pre', 'err'); pre.textContent = (o.traceback ? o.traceback.join('\n') : `${o.ename}: ${o.evalue}`).replace(/\x1b\[[0-9;]*m/g, ''); return pre
}
const data = o.data || {}
if (data['image/png']) { const img = el('img'); img.src = 'data:image/png;base64,' + join(data['image/png']).replace(/\s+/g, ''); return img }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Provide alternative text for image outputs.

Set a meaningful alt value from available metadata, or use alt="" when the image is decorative.

🧰 Tools
🪛 ast-grep (0.44.1)

[warning] 193-193: Avoid assigning untrusted data to innerHTML/outerHTML or document.write
Context: d.innerHTML = join(data['text/html'])
Note: [CWE-79] Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').

(inner-outer-html)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@examples/local-runner-demo/index.html` at line 193, Update the image creation
branch in the inline output-rendering logic to assign an alt attribute to the
generated img element. Use meaningful available metadata when present; otherwise
explicitly set alt to an empty string for decorative images.

@jamesbhobbs
jamesbhobbs force-pushed the demo/local-runner-site branch from 17d8aba to de61aab Compare July 11, 2026 11:21
jamesbhobbs and others added 4 commits July 11, 2026 12:41
…t for merge]

A single index.html + a ~10-line serve.mjs that drive local .deepnote execution
via @deepnote/local-runner's serveStatic: GET /api/info builds the input
controls, POST /api/run executes in a local kernel and renders real output.

Spike/demo only — shows how little code a static site needs. Verified
end-to-end against examples/6_with_inputs.deepnote (real kernel output).
Committed with --no-verify: Biome 2.2.7 doesn't format .html, so the pre-commit
hook rejects the intentionally-unformatted example page.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
… for merge]

Adds a ☁ Run in cloud button wired to POST /api/run-cloud → runInCloud → the
shared @deepnote/cloud client. Renders the cloud snapshot's outputs the same way
as a local run. Degrades gracefully without a DEEPNOTE_TOKEN / cloud notebook.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…s missing

The ☁ Run in cloud button now opens the returned launchUrl when runInCloud
uploads a not-yet-existing notebook ("Open in Deepnote"), so you can import it
and run again. README updated.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
… run

On a successful ☁ cloud run, render result.viewUrl as a link to open the
notebook's runs in Deepnote.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@jamesbhobbs
jamesbhobbs force-pushed the demo/local-runner-site branch from de61aab to 4553ae6 Compare July 11, 2026 11:42
jamesbhobbs added a commit that referenced this pull request Jul 11, 2026
Folds the demo/local-runner-site spike (previously PR #420) in as an example:
examples/local-runner-demo/ — a ~10-line serve.mjs + a single index.html that
drive local and cloud runs (edit inputs, run locally or in Deepnote Cloud, view
runs) via @deepnote/local-runner. Not wired into CI/build; example only.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@jamesbhobbs

Copy link
Copy Markdown
Member Author

Folded into #419 as examples/local-runner-demo/ (single commit 0ab08e1). Closing this standalone spike PR — the demo now lives with the @deepnote/local-runner package it exercises.

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