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.

fix nav_menu docs

Myles Scolnick772f3d43984b
diff --git a/frontend/vite.config.mts b/frontend/vite.config.mts
index 615e7af720..6710a4d871 100644
--- a/frontend/vite.config.mts
+++ b/frontend/vite.config.mts
@@ -62,7 +62,7 @@ const htmlDevPlugin = (): Plugin => {
return `
<html>
<body>
- In development mode, please run the server without authentication: <code style="color: red;">marimo run --no-auth</code>
+ In development mode, please run the server without authentication: <code style="color: red;">marimo edit --no-token</code>
</body>
</html>
`;
diff --git a/marimo/_plugins/stateless/nav_menu.py b/marimo/_plugins/stateless/nav_menu.py
index dcf209af66..8ac65a8480 100644
--- a/marimo/_plugins/stateless/nav_menu.py
+++ b/marimo/_plugins/stateless/nav_menu.py
@@ -37,20 +37,23 @@ def nav_menu(
# You can also nest dictionaries to create submenus
```python
- nav_menu = mo.nav_menu({
- "/overview": "Overview",
- "Sales": {
- "/sales": "Overview",
- "/sales/invoices": {
- "label": "Invoices",
- "description": "View invoices",
- },
- "/sales/customers": {
- "label": "Customers",
- "description": "View customers",
+ nav_menu = mo.nav_menu(
+ {
+ "/overview": "Overview",
+ "Sales": {
+ "/sales": "Overview",
+ "/sales/invoices": {
+ "label": "Invoices",
+ "description": "View invoices",
+ },
+ "/sales/customers": {
+ "label": "Customers",
+ "description": "View customers",
+ },
},
- },
- })
+ }
+ )
+ ```
**Args.**