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.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
docs: fix links, add ci (#3450)
Myles Scolnickd578c181bad4
diff --git a/.github/workflows/test_be.yaml b/.github/workflows/test_be.yamlindex 6a3f2b6039..402a10844b 100644--- a/.github/workflows/test_be.yaml+++ b/.github/workflows/test_be.yaml@@ -13,6 +13,7 @@ jobs:runs-on: ubuntu-latestoutputs:backend: ${{ steps.filter.outputs.backend }}+ docs: ${{ steps.filter.outputs.docs }}steps:- uses: actions/checkout@v4- uses: dorny/paths-filter@v3@@ -23,6 +24,26 @@ jobs:- 'marimo/**'- 'tests/**'- 'pyproject.toml'+ docs:+ - 'docs/**'++ test_docs:+ needs: changes+ if: ${{ needs.changes.outputs.docs == 'true' }}+ name: Test docs+ runs-on: ubuntu-latest+ steps:+ - name: 🛑 Cancel Previous Runs+ uses: styfle/[email protected]++ - name: ⬇️ Checkout repo+ uses: actions/checkout@v4++ - name: ⬇️ Install Hatch+ uses: pypa/hatch@install++ - name: 📚 Build docs+ run: hatch run docs:build --stricttest_python:needs: changesdiff --git a/docs/guides/coming_from/jupyter.md b/docs/guides/coming_from/jupyter.mdindex f5b702f5e6..1f8dc2265f 100644--- a/docs/guides/coming_from/jupyter.md+++ b/docs/guides/coming_from/jupyter.md@@ -172,10 +172,10 @@ subprocess.run(["ls", "-l"])| %env | `os.environ` || %load | N/A - use Python imports || %load_ext | N/A |-| %autoreload | marimo's [module autoreloader](../../editor_features/module_autoreloading/) |+| %autoreload | marimo's [module autoreloader](../editor_features/module_autoreloading.md) || %matplotlib | marimo auto-displays plots || %pwd | `os.getcwd()` |-| %pip | Use marimo's [built-in package management](../../editor_features/package_management/) |+| %pip | Use marimo's [built-in package management](../editor_features/package_management.md) || %who_ls | `dir()`, `globals()`, [`mo.refs()`][marimo.refs], [`mo.defs()`][marimo.defs] || %system | `subprocess.run()` || %%time | `time.perf_counter()` or Python's timeit module |diff --git a/docs/guides/editor_features/module_autoreloading.md b/docs/guides/editor_features/module_autoreloading.mdindex dbc1c00919..5b36df1cf3 100644--- a/docs/guides/editor_features/module_autoreloading.md+++ b/docs/guides/editor_features/module_autoreloading.md@@ -1,7 +1,7 @@# Module autoreloadingmarimo has an advanced module autoreloader built-in, which you can-enable in the [notebook settings](../../configuration/runtime_configuration/).+enable in the [notebook settings](../configuration/runtime_configuration.md).When you make edits to Python modules that your notebook has imported, themodule autoreloader will automatically mark cells that use them as stale and,optionally, automatically run them.diff --git a/docs/guides/publishing/playground.md b/docs/guides/publishing/playground.mdindex 06b2dcb511..88094a533d 100644--- a/docs/guides/publishing/playground.md+++ b/docs/guides/publishing/playground.md@@ -20,7 +20,7 @@ _The notebook embedded below is a playground notebook!_<iframe src="https://marimo.app/l/upciwv?embed=true" width="100%" height=400 frameBorder="0"></iframe>-## Creating and sharing playground notebooks+## Creating and sharing playground notebooks { #creating-and-sharing-playground-notebooks }Playground notebooks run at [marimo.app](https://marimo.app).@@ -59,7 +59,7 @@ navigate to `https://marimo.app/path/to/notebook.py`. For example:For a convenient way to create notebooks from GitHub, drag and drop thefollowing button to your bookmarks bar:- <a href="javascript:(function(){if(!location.href.endsWith('.py')&&!location.href.endsWith('.ipynb')){alert('Please use this bookmarklet on a URL ending with .py or .ipynb');return;}let url=window.location.href.replace(/^https:\/\//,'');window.open('https://marimo.app/' + url, '_blank');})();"+ <a href="javascript:(function(){if(!location.href.endsWith('.py')&&!location.href.endsWith('.ipynb')){alert('Please use this bookmarklet on a URL ending with .py or .ipynb');return;}let url=window.location.href.replace(/^https:\/\//,'');window.open('https://marimo.app/' + url, '_blank');})();"style="padding: 5px 10px; background-color: #007bff; color: white; text-decoration: none; border-radius: 5px; font-weight: bold;">Open in marimo</a>@@ -106,8 +106,6 @@ notebooks hosted on GitHub:[](https://marimo.app/GITHUB_URL)```--=== "HTML"Replace `GITHUB_URL` with the URL to a notebook on GitHub.@@ -198,7 +196,7 @@ providing your users with an interactive code playground.### Embedding an existing notebookTo embed existing marimo notebooks into a webpage, first, [obtain a-URL to your notebook](#creating-and-sharing-wasm-notebooks), then put it in an iframe.+URL to your notebook](#creating-and-sharing-playground-notebooks), then put it in an iframe.```html<iframediff --git a/docs/recipes.md b/docs/recipes.mdindex 1377af2b6d..086efc8de5 100644--- a/docs/recipes.md+++ b/docs/recipes.md@@ -394,7 +394,7 @@ form.value### Populating form with pre-defined examples**Use cases.** To give examples of how a filled form looks like. Useful for illustrating complex API requests or database queries.-The form can also be populated from [URL query parameters](https://docs.marimo.io/api/query_params.html) (<a href="https://marimo.app/l/w21a3x?t1=query&t2=params">notebook example</a>).+The form can also be populated from [URL query parameters](./api/query_params.md) (<a href="https://marimo.app/l/w21a3x?t1=query&t2=params">notebook example</a>).**Recipe.**