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.

docs: open in marimo badge (#3419)

Akshay Agrawal5a6596ac95a6
diff --git a/docs/guides/publishing/playground.md b/docs/guides/publishing/playground.md
index 717d0dfa3b..06b2dcb511 100644
--- a/docs/guides/publishing/playground.md
+++ b/docs/guides/publishing/playground.md
@@ -67,7 +67,7 @@ navigate to `https://marimo.app/path/to/notebook.py`. For example:
Clicking the bookmark when you are viewing a notebook will
open it in [marimo.app](https://marimo.app/).
-!!! note "From Jupyter notebooks"
+!!! tip "From Jupyter notebooks"
You can also create Playground notebooks from Jupyter notebooks hosted
on GitHub. marimo will attempt to automatically convert the notebook
@@ -91,6 +91,33 @@ locally and in the playground.
and open the file explorer panel to see all the files available to the notebook.
+#### Open in marimo badge
+
+Include an "open in marimo" badge in your README to link to playground
+notebooks hosted on GitHub:
+
+[![Open with marimo](https://marimo.io/shield.svg)](https://marimo.app/GITHUB_URL)
+
+=== "Markdown"
+
+ Replace `GITHUB_URL` with the URL to a notebook on GitHub.
+
+ ```markdown
+ [![Open with marimo](https://marimo.io/shield.svg)](https://marimo.app/GITHUB_URL)
+ ```
+
+
+
+=== "HTML"
+
+ Replace `GITHUB_URL` with the URL to a notebook on GitHub.
+
+ ```html
+ <a href="https://marimo.app/GITHUB_URL" target="_blank">
+ <img alt="Open in marimo" src="https://marimo.io/shield.svg" />
+ </a>
+ ```
+
### Creating playground notebooks from local notebooks
In the marimo editor's notebook action menu, use `Share > Create WebAssembly