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
Fix shebangs /bin/bash -> /usr/bin/env bash (#9942)
Oskar Philipsson8558c32d9c50
diff --git a/docs/guides/deploying/deploying_slurm.md b/docs/guides/deploying/deploying_slurm.mdindex 935c2bab2b..c0689e1669 100644--- a/docs/guides/deploying/deploying_slurm.md+++ b/docs/guides/deploying/deploying_slurm.md@@ -13,7 +13,7 @@ For interactive development, submit a job that runs `marimo edit` and connect viCreate a script (`run_marimo.sh`):```bash-#!/bin/bash+#!/usr/bin/env bash#SBATCH --job-name=marimo#SBATCH --output=marimo-%j.out#SBATCH --cpus-per-task=4@@ -79,7 +79,7 @@ if __name__ == "__main__":Submit as a job:```bash-#!/bin/bash+#!/usr/bin/env bash#SBATCH --job-name=marimo-job#SBATCH --output=marimo-%j.out#SBATCH --cpus-per-task=4@@ -94,7 +94,7 @@ Add GPU resources to your SBATCH directives:/// tab | Interactive development```bash-#!/bin/bash+#!/usr/bin/env bash#SBATCH --job-name=marimo#SBATCH --output=marimo-%j.out#SBATCH --partition=gpu@@ -108,12 +108,12 @@ Add GPU resources to your SBATCH directives:python -m marimo edit notebook.py --headless --port 3000```-///+////// tab | Batch jobs```bash-#!/bin/bash+#!/usr/bin/env bash#SBATCH --job-name=marimo-gpu#SBATCH --partition=gpu#SBATCH --gres=gpu:1diff --git a/docs/guides/generate_with_ai/using_claude_code.md b/docs/guides/generate_with_ai/using_claude_code.mdindex c833d28c0c..4cf9c854ff 100644--- a/docs/guides/generate_with_ai/using_claude_code.md+++ b/docs/guides/generate_with_ai/using_claude_code.md@@ -121,7 +121,7 @@ This hook will run every time an `Edit` or a `Write` tool is called. You can poithat will check if the current edit is taking place on a marimo notebook.```bash-#!/bin/bash+#!/usr/bin/env bash# Hook to check marimo notebooks after Write/Edit operations# Reads JSON from stdin containing tool result informationdiff --git a/scripts/pytest-changed.sh b/scripts/pytest-changed.shindex c15a7357d8..f230e85322 100755--- a/scripts/pytest-changed.sh+++ b/scripts/pytest-changed.sh@@ -1,4 +1,4 @@-#!/bin/bash+#!/usr/bin/env bashset -eusage() {diff --git a/scripts/pytest.sh b/scripts/pytest.shindex 6f7e777320..ba7d0b9666 100755--- a/scripts/pytest.sh+++ b/scripts/pytest.sh@@ -1,4 +1,4 @@-#!/bin/bash+#!/usr/bin/env bashset -eusage() {diff --git a/scripts/release.sh b/scripts/release.shindex 0f89d6a91a..1d2a088a7c 100755--- a/scripts/release.sh+++ b/scripts/release.sh@@ -1,4 +1,4 @@-#!/bin/bash+#!/usr/bin/env bashset -e# Colors and formattingdiff --git a/scripts/test-narwhals.sh b/scripts/test-narwhals.shindex 2528d893b8..85e9c5b8af 100755--- a/scripts/test-narwhals.sh+++ b/scripts/test-narwhals.sh@@ -1,4 +1,4 @@-#!/bin/bash+#!/usr/bin/env bashset -e# This script is used externally by the narwhals repo to run marimo testsdiff --git a/scripts/validate_base_wheel_size.sh b/scripts/validate_base_wheel_size.shindex ac7164ee6c..a6d29857dc 100755--- a/scripts/validate_base_wheel_size.sh+++ b/scripts/validate_base_wheel_size.sh@@ -1,4 +1,4 @@-#!/bin/bash+#!/usr/bin/env bash# Check if marimo/_static/index.html existsif [ ! -f "marimo/_static/index.html" ]; thendiff --git a/tests/_convert/test_convert_non_marimo_python_script.py b/tests/_convert/test_convert_non_marimo_python_script.pyindex 18680196b4..83d966a562 100644--- a/tests/_convert/test_convert_non_marimo_python_script.py+++ b/tests/_convert/test_convert_non_marimo_python_script.py@@ -79,7 +79,7 @@ def incomplete_function(def test_bash_script(self) -> None:"""Test non-Python script (bash)."""- source = """#!/bin/bash+ source = """#!/usr/bin/env bashecho "Hello World"for i in {1..5}; doecho "Count: $i"@@ -137,7 +137,7 @@ Some more content here.def test_script_block_with_special_characters(self) -> None:"""Test script block with special characters."""- source = """#!/bin/bash+ source = """#!/usr/bin/env bashecho "Hello World"# This is a bash script, not Python"""