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.

FAQ: running marimo on a remote server (#495)

Akshay Agrawald65a1184a981
diff --git a/docs/faq.md b/docs/faq.md
index 943251cde8..4cbe19642a 100644
--- a/docs/faq.md
+++ b/docs/faq.md
@@ -21,6 +21,7 @@
- [How do I reload modules?](#faq-reload)
- [How does marimo treat type annotations?](#faq-annotations)
- [What packages can I use?](#faq-packages)
+ - [How do I use marimo on a remote server?](#faq-remote)
- [How do I deploy apps?](#faq-app-deploy)
- [Is marimo free?](#faq-marimo-free)
@@ -312,6 +313,17 @@ For Python 3.12+, marimo additionally implements annotation scoping.
You can use any Python package. marimo cells run arbitrary Python code.
+<a name="faq-remote" ></a>
+**How do I use marimo on a remote server?**
+
+Use SSH port-forwarding to run the marimo kernel on a remote server
+and connect to it from a browser on your local machine. Make sure
+to pass the `--headless` flag when starting marimo on remote:
+
+```bash
+marimo edit notebook.py --headless
+```
+
<a name="faq-app-deploy" ></a>
**How do I deploy apps?**