Claude-skill-registry jupyter-notebook
Jupyter Notebook Expert Skill - Guide for notebook execution and Databricks kernel integration
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/jupyter-notebook-i9wa4-dotfiles" ~/.claude/skills/majiayu000-claude-skill-registry-jupyter-notebook && rm -rf "$T"
manifest:
skills/data/jupyter-notebook-i9wa4-dotfiles/SKILL.mdsource content
Jupyter Notebook Expert Skill
This skill provides a guide for Jupyter Notebook execution.
1. Databricks Jupyter Kernel
https://github.com/i9wa4/jupyter-databricks-kernel
# With uv uv pip install jupyter-databricks-kernel uv run python -m jupyter_databricks_kernel.install # With pip pip install jupyter-databricks-kernel python -m jupyter_databricks_kernel.install
2. Default Execution Method
When instructed to execute an entire notebook, use this command:
uv run jupyter execute <notebook_path> --inplace --timeout=300
3. Execute with Databricks Kernel
When running notebook on Databricks cluster:
uv run jupyter execute <notebook_path> --inplace --kernel_name=databricks --timeout=300
Required environment variables:
: Databricks workspace URLDATABRICKS_HOST
: Personal Access TokenDATABRICKS_TOKEN
: Cluster IDDATABRICKS_CLUSTER_ID
4. Usage Examples
# Execute with local Python kernel uv run jupyter execute /workspace/notebooks/sample.ipynb --inplace --timeout=300 # Execute with Databricks kernel uv run jupyter execute /workspace/notebooks/databricks-sample.ipynb --inplace --kernel_name=databricks --timeout=300
5. Option Descriptions
: Overwrite original file with execution results--inplace
: Specify kernel to use (databricks, python3, etc.)--kernel_name=<name>
: Set timeout in seconds (-1 for unlimited)--timeout=<seconds>
: Kernel startup timeout (default 60 seconds)--startup_timeout=<seconds>
: Continue execution to end even with errors--allow-errors
6. Notes
- Verify required environment variables are properly set before execution
- Adjust
value for long-running cells--timeout - If open in VS Code, verify file updates after execution
- For Databricks kernel, cluster startup takes 5-6 minutes if stopped
7. Reference Links
- jupyter-databricks-kernel: https://github.com/i9wa4/jupyter-databricks-kernel
- Jupyter nbclient: https://nbclient.readthedocs.io/