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.

Parameterize fastapi-github example with environment vars (#3078)

Trevor Manz4129e0222e08
diff --git a/examples/frameworks/fastapi-github/main.py b/examples/frameworks/fastapi-github/main.py
index 12b9f8d530..72c1a8383f 100644
--- a/examples/frameworks/fastapi-github/main.py
+++ b/examples/frameworks/fastapi-github/main.py
@@ -23,8 +23,8 @@ logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
# Constants
-GITHUB_REPO = "marimo-team/marimo"
-ROOT_DIR = "examples/ui"
+GITHUB_REPO = os.environ.get("GITHUB_REPO", "marimo-team/marimo")
+ROOT_DIR = os.environ.get("ROOT_DIR", "examples/ui")
templates_dir = os.path.join(os.path.dirname(__file__), "templates")
# Set up templates