Skip to content

add molab share action#9207

Merged
Light2Dark merged 1 commit intomainfrom
sham/add-molab-share-button
Apr 15, 2026
Merged

add molab share action#9207
Light2Dark merged 1 commit intomainfrom
sham/add-molab-share-button

Conversation

@Light2Dark
Copy link
Copy Markdown
Collaborator

@Light2Dark Light2Dark commented Apr 15, 2026

📝 Summary

Adds molab share action which opens up molab.marimo.io/new#code/... in a new tab. This is shown if either sharing option is enabled, but not shown if both are disabled.

image
Screen.Recording.2026-04-16.at.12.03.07.AM.mov

📋 Pre-Review Checklist

  • For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on Discord, or the community discussions (Please provide a link if applicable).
  • Any AI generated code has been reviewed line-by-line by the human PR author, who stands by it.
  • Video or media evidence is provided for any visual changes (optional).

✅ Merge Checklist

  • I have read the contributor guidelines.
  • Documentation has been updated where applicable, including docstrings for API changes.
  • Tests have been added for the changes made.

@Light2Dark Light2Dark requested review from akshayka and Copilot April 15, 2026 16:04
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 15, 2026

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

Project Deployment Actions Updated (UTC)
marimo-docs Ready Ready Preview, Comment Apr 15, 2026 4:11pm

Request Review

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new “Create molab notebook” share action in the editor, generating a compressed #code/... URL and opening it in a new tab targeting molab.

Changes:

  • Add a Constants.molab base URL.
  • Add a Share dropdown action that reads notebook code, builds a shareable link with a molab /new base, and opens it in a new tab.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
frontend/src/core/constants.ts Adds a new molab base URL constant used for sharing.
frontend/src/components/editor/actions/useNotebookActions.tsx Adds a Share menu item to create/open a molab notebook from current code.

Comment thread frontend/src/components/editor/actions/useNotebookActions.tsx
Comment thread frontend/src/components/editor/actions/useNotebookActions.tsx
Comment thread frontend/src/components/editor/actions/useNotebookActions.tsx
Comment thread frontend/src/core/constants.ts
Copy link
Copy Markdown
Contributor

@akshayka akshayka left a comment

Choose a reason for hiding this comment

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

Looks great!

@Light2Dark Light2Dark merged commit d616b3c into main Apr 15, 2026
38 of 43 checks passed
@Light2Dark Light2Dark deleted the sham/add-molab-share-button branch April 15, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants