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
improve: deploying docs (#2163)
Akshay Agrawal48960a1895d4
diff --git a/docs/guides/deploying/deploying_railway.md b/docs/guides/deploying/deploying_railway.mdindex b5035236e3..12cce3ce7f 100644--- a/docs/guides/deploying/deploying_railway.md+++ b/docs/guides/deploying/deploying_railway.md@@ -1,6 +1,8 @@# Deploy to Railway-Railway is a platform that allows you to deploy Dockerize containers easily. Using this pre-built template, Railway will deploy a single-instance marimo edit server with persistent storage in a few clicks.+Railway is a platform that allows you to deploy Dockerize containers easily.+Using this pre-built template, Railway will deploy a single-instance marimo+edit server with persistent storage in a few clicks.## Deploydiff --git a/docs/guides/deploying/index.md b/docs/guides/deploying/index.mdindex 210cbdbffd..adb38aaa06 100644--- a/docs/guides/deploying/index.md+++ b/docs/guides/deploying/index.md@@ -1,57 +1,52 @@# Deploying-```{eval-rst}-.. toctree::- :maxdepth: 2- :hidden:-- programmatically- deploying_docker- deploying_public_gallery- deploying_marimo_cloud- deploying_ploomber- deploying_railway- prebuilt_containers- authentication-```--These guides help you deploy marimo notebooks.+You can deploy marimo in three ways:-| | |-| :------------------------------ | :-------------------------------------------------------- |-| {doc}`programmatically` | Programmatically run the marimo backend for customization |-| {doc}`deploying_docker` | Deploy with Docker |-| {doc}`deploying_public_gallery` | Deploy our public gallery |-| {doc}`deploying_marimo_cloud` | Deploy to Marimo Cloud |-| {doc}`deploying_ploomber` | Deploy to Ploomber Cloud |-| {doc}`deploying_railway` | Deploy to Railway |-| {doc}`prebuilt_containers` | Prebuilt containers |-| {doc}`authentication` | Authentication and security |+1. via an **edit server**, which allows you to create and edit notebooks. On+ the CLI, this is launched with `marimo edit`, and is similar to `jupyter+ notebook`.+2. via a **run server**, which allows you serve marimo notebooks as read-only+ web apps. On the CLI, this is launched with `marimo run notebook.py`+3. programmatically, which allows you serve **read-only** marimo apps+ as part of other ASGI applications, for example using FastAPI.-```{admonition} Sharing notebooks on the public web+```{admonition} Sharing lightweight notebooks on the web:class: tip-To share notebooks on the public web, try using [WASM-notebooks](../../guides/wasm.md), an implementation of marimo that runs-entirely in the browser -- no backend required.+To share notebooks on the public web, try using [our online playground+](https://marimo.new). Our playground runs entirely in the browser -- no+backend required, via [WASM](/guides/wasm.md).++Or, to share notebooks with email-based authorization, you can also+try our free [community cloud](https://marimo.io/sign-up), which is+also powered by WASM.-WASM notebooks support most but not all Python features and packages. See our-[guide on WASM notebooks](../../guides/wasm.md) to learn more.+WASM notebooks support most but not all Python features and packages.```-```{admonition} Marimo Cloud-:class: tip+## Deploying an edit server-For a turnkey cloud solution, try [Marimo Cloud](/guides/deploying/deploying_marimo_cloud.md).-```+Here are a few ways to deploy an edit server on a remote instance:++1. With [ssh-port forwarding](/faq.md#faq-remote), using `marimo edit --headless`.+2. Via docker and our [prebuilt containers](/guides/prebuilt_containers.md).+3. Via a deployment service [such as Railway](/guides/deploying/deploying_railway.md).+4. [Behind JupyterHub](/faq.md#faq-jupyter-hub).-## Programmatically running the marimo backend+## Deploying as read-only apps-When deploying marimo notebooks, you can run the marimo backend programmatically. This allows you to customize the backend to your needs and deploy it in your own environment.+These guides help you deploy marimo notebooks as read-only apps.-See the [programmatically running the marimo backend guide](programmatically.md) for more information.+| | |+| :------------------------------ | :------------------------------------------------------- |+| {doc}`programmatically` | Programmatically run and customize read-only marimo apps |+| {doc}`deploying_docker` | Deploy with Docker |+| {doc}`authentication` | Authentication and security |+| {doc}`deploying_public_gallery` | Deploy to our public gallery |+| {doc}`deploying_marimo_cloud` | Deploy to Marimo Cloud |+| {doc}`deploying_ploomber` | Deploy to Ploomber Cloud |-## Health and status endpoints+### Health and status endpointsThe following endpoints may be useful when deploying your application:@@ -59,7 +54,7 @@ The following endpoints may be useful when deploying your application:- `/healthz` - Same as above, just a different name for easier integration with cloud providers- `/api/status` - A status endpoint that returns a JSON object with the status of the server-## Configuration+### ConfigurationIf you would like to deploy your application at a subpath, you can set the `--base-url` flag when running your application.@@ -67,7 +62,7 @@ If you would like to deploy your application at a subpath, you can set the `--bamarimo run app.py --base-url /subpath```-## Including code in your application+### Including code in your applicationYou can include code in your application by using the `--include-code` flag when running your application.