Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

add molab share action (#9207)

Shahmir Varqhad616b3c98cd9
diff --git a/frontend/src/components/editor/actions/useNotebookActions.tsx b/frontend/src/components/editor/actions/useNotebookActions.tsx
index 4de3b5f2dc..ff68883e5d 100644
--- a/frontend/src/components/editor/actions/useNotebookActions.tsx
+++ b/frontend/src/components/editor/actions/useNotebookActions.tsx
@@ -381,6 +381,18 @@ export function useNotebookActions() {
});
},
},
+ {
+ icon: <MarimoPlusIcon size={14} strokeWidth={1.5} />,
+ label: "Create molab notebook",
+ handle: async () => {
+ const code = await readCode();
+ const url = createShareableLink({
+ code: code.contents,
+ baseUrl: `${Constants.molab}/new`,
+ });
+ window.open(url, "_blank");
+ },
+ },
],
},
diff --git a/frontend/src/core/constants.ts b/frontend/src/core/constants.ts
index 5f7d647167..42167d1dfa 100644
--- a/frontend/src/core/constants.ts
+++ b/frontend/src/core/constants.ts
@@ -7,6 +7,7 @@ export const Constants = {
discordLink: "https://marimo.io/discord?ref=notebook",
docsPage: "https://docs.marimo.io",
youtube: "https://www.youtube.com/@marimo-team",
+ molab: "https://molab.marimo.io",
};
export const KnownQueryParams = {