New notebook
Creates a Jupyter notebook with Jupytext pairing and registers it in _quarto.yml. Use when adding a new notebook.From its SKILL.md
npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill new-notebookAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
1.4 KB, 332 tokens by cl100k_base, as published. Nobody here has run it
Create New Notebook
Create a new Jupyter notebook with Jupytext pairing and register it in the manuscript.
Arguments
$ARGUMENTS— the notebook name and title (e.g., "notebook-02 Regression Analysis")
Steps
- Parse the name and title from the arguments. Follow the naming convention:
notebook-NN.ipynb(sequential numbering) - Check
notebooks/for existing notebooks to determine the next number - Create the
.ipynbfile innotebooks/with:- The correct kernel (ask user: Python, R, or Stata)
- A first code cell with the setup appropriate for the chosen kernel:
- Python:
import sys; sys.path.insert(0, ".."); from config import set_seeds, DATA_DIR; set_seeds() - R:
source("../config.R"); set_seeds() - Stata:
clear allfollowed byset seed 42
- Python:
- A markdown cell with the notebook title
- Create the Jupytext
.mdpair by running:uv run jupytext --set-formats ipynb,md:myst notebooks/<name>.ipynb - Register the notebook in
_quarto.ymlundermanuscript.notebooks:- notebook: notebooks/<name>.ipynb title: "N<number>: <title>" - Confirm the notebook renders:
quarto render notebooks/<name>.ipynb
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.