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: move click down

Myles Scolnick1de18e2002d5
diff --git a/.github/workflows/dev-release.yml b/.github/workflows/dev-release.yml
index 2e9a427559..ae73cde82e 100644
--- a/.github/workflows/dev-release.yml
+++ b/.github/workflows/dev-release.yml
@@ -5,6 +5,11 @@ on:
push:
branches:
- main
+
+env:
+ TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
+ TURBO_TEAM: marimo
+
jobs:
publish_dev_release:
name: 📤 Publish dev release
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index d0fd04be39..64e42636c7 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -7,6 +7,10 @@ on:
- "[0-9]+.[0-9]+.[0-9]+"
workflow_dispatch: {}
+env:
+ TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
+ TURBO_TEAM: marimo
+
jobs:
publish_release:
name: 📤 Publish release
diff --git a/marimo/_ast/codegen.py b/marimo/_ast/codegen.py
index 0cc94b49f9..79cd43fe59 100644
--- a/marimo/_ast/codegen.py
+++ b/marimo/_ast/codegen.py
@@ -13,7 +13,6 @@ from marimo._ast.app import App, _AppConfig
from marimo._ast.cell import CellConfig, CellImpl
from marimo._ast.compiler import compile_cell
from marimo._ast.visitor import Name
-from marimo._cli.convert.markdown import convert_from_md_to_app
if TYPE_CHECKING:
from collections.abc import Sequence
@@ -216,6 +215,8 @@ def get_app(filename: Optional[str]) -> Optional[App]:
return None
if filename.endswith(".md"):
+ from marimo._cli.convert.markdown import convert_from_md_to_app
+
return convert_from_md_to_app(contents)
spec = importlib.util.spec_from_file_location("marimo_app", filename)
diff --git a/marimo/_cli/file_path.py b/marimo/_cli/file_path.py
index 0346dd4d31..90ce441008 100644
--- a/marimo/_cli/file_path.py
+++ b/marimo/_cli/file_path.py
@@ -10,8 +10,6 @@ import urllib.request
from tempfile import TemporaryDirectory
from typing import Optional
-import click
-
from marimo._cli.print import green
from marimo._utils.marimo_path import MarimoPath
from marimo._utils.url import is_url
@@ -60,6 +58,7 @@ def validate_name(
Optional TemporaryDirectory, returned to prevent it from being
cleaned up
"""
+ import click
if _is_github_issue_url(name):
temp_dir = TemporaryDirectory()
@@ -147,6 +146,8 @@ def _is_static_marimo_notebook_url(url: str) -> tuple[bool, str]:
def _handle_github_issue(url: str, temp_dir: TemporaryDirectory[str]) -> str:
+ import click
+
issue_number = url.split("/")[-1]
api_url = f"https://api.github.com/repos/marimo-team/marimo/issues/{issue_number}"
issue_response = urllib.request.urlopen(api_url).read().decode("utf-8")