Skip to content

Instantly share code, notes, and snippets.

@AdriRRP
AdriRRP / jupyter.sh
Created May 10, 2025 10:18
Minimal script to launch a Jupyter Notebook via Docker with a mounted local folder. Usable both as a shell script and a one-liner for quick terminal execution.
#!/bin/bash
# 🧠 Minimal Jupyter Notebook runner using Docker
# This script mounts a local folder into a Jupyter container.
# - If a directory path is passed as the first argument, it is used.
# - Otherwise, the current working directory is mounted.
NB_PATH="${1:-$PWD}" # Feel free to hardcode your PATH and copy paste to the console