PAPERMILL(1)

πŸ“¦
version 2.7.0 Β· 3 versions
, in ubuntu stonking

πŸ’– papermill β€” the manual page, but make it a group chat πŸ’–

okay bestie, gather round, because this is the papermill(1) page and it's from the User Commands section of the manual, and we are going to understand it, not just scroll past it. πŸŽ€


✨ NAME ✨

papermill β€” it's papermill, babes. that's the name. it's giving iconic, it's giving self-explanatory, we move. πŸ’…


🌸 SYNOPSIS 🌸

papermill [OPTIONS] NOTEBOOK_PATH [OUTPUT_PATH]

that's the whole vibe. options, then where the notebook's at, then optionally where it's going. πŸ¦‹


πŸ’œ DESCRIPTION πŸ’œ

so this lil utility? it executes one single notebook in a subprocess. one. single. notebook. it's monogamous like that. no cap. πŸ”₯

here's the whole pipeline, and honestly it's so clean:

  • papermill takes a source notebook
  • applies parameters to that source notebook
  • executes the notebook with the specified kernel
  • and saves the output in the destination notebook

that's it. that's the whole glow-up arc. ✨

now here's the part that's highkey underrated: the NOTEBOOK_PATH and OUTPUT_PATH can now be replaced by -, which represents stdout and stderr, or by the presence of pipe inputs / outputs. meaning that

<generate input>... | papermill | ...<process output>

with papermill - - being implied by the pipes, it will read a notebook from stdin and write it out to stdout. bestie. the pipes do the work for you. it's literally main character energy. no notes. πŸ‘‘


πŸŽ€ OPTIONS πŸŽ€

okay this is the long part, but every single one of these matters, so we're going through all of them. hydrate. πŸ’§

  • --help-notebook β€” displays parameters information for the given notebook path. like a lil peek at what you can pass in before you commit. 🫢
  • -p, --parameters TEXT... β€” parameters to pass to the parameters cell.
  • -r, --parameters_raw TEXT... β€” parameters to be read as raw string.
  • -f, --parameters_file TEXT β€” path to a YAML file containing parameters.
  • -y, --parameters_yaml TEXT β€” a YAML string to be used as parameters.
  • -b, --parameters_base64 TEXT β€” a Base64 encoded YAML string as parameters.
  • --inject-input-path β€” insert the path of the input notebook as PAPERMILL_INPUT_PATH as a notebook parameter.
  • --inject-output-path β€” insert the path of the output notebook as PAPERMILL_OUTPUT_PATH as a notebook parameter.
  • --inject-paths β€” insert the paths of input/output notebooks as PAPERMILL_INPUT_PATH/PAPERMILL_OUTPUT_PATH as notebook parameters.
  • --engine TEXT β€” the execution engine name to use in evaluating the notebook.
  • --request-save-on-cell-execute / --no-request-save-on-cell-execute β€” request save notebook after each cell execution. every. single. cell. πŸ’…
  • --autosave-cell-every INTEGER β€” how often in seconds to autosave the notebook during long cell executions (0 to disable). for when your cell is taking forever and you're scared. 😭
  • --prepare-only / --prepare-execute β€” flag for outputting the notebook without execution, but with parameters applied. bestie this does NOT run anything, it just preps. important difference, don't get it twisted. ⭐
  • -k, --kernel TEXT β€” name of kernel to run. ignores kernel name in the notebook document metadata. yes, it overrides the notebook's own choice. the audacity, we love it. πŸ”₯
  • -l, --language TEXT β€” language for notebook execution. ignores language in the notebook document metadata. same energy, same override. ✨
  • --cwd TEXT β€” working directory to run notebook in.
  • --progress-bar / --no-progress-bar β€” flag for turning on the progress bar. because watching a bar fill up is self care. 🌈
  • --log-output / --no-log-output β€” flag for writing notebook output to the configured logger.
  • --stdout-file FILENAME β€” file to write notebook stdout output to.
  • --stderr-file FILENAME β€” file to write notebook stderr output to.
  • --log-level [NOTSET|DEBUG|INFO|WARNING|ERROR|CRITICAL] β€” set log level. pick your vibe from that exact list, those are the only options, don't freestyle. 🧚
  • --start-timeout, --start_timeout INTEGER β€” time in seconds to wait for kernel to start. (two spellings, both work, we're flexible like that πŸ’–)
  • --execution-timeout INTEGER β€” time in seconds to wait for each cell before failing execution. default: forever. FOREVER bestie. it will wait until the heat death of the universe unless you tell it not to. πŸ˜­πŸ’€
  • --report-mode / --no-report-mode β€” flag for hiding input.
  • --version β€” flag for displaying the version.
  • -h, --help β€” show this message and exit. the classic. the original. we stan. πŸ‘‘

real talk for a sec 🫢 β€” a couple of these flags change how your notebook runs, and --prepare-only genuinely skips execution entirely. if you're expecting output and get none, check your flags first. not me being the responsible one for once. πŸ™ˆ

πŸ’Œ sign-off πŸ’Œ

that's the page bestie, and it's papermill 2.7.0, dated April 2026, living in the User Commands section of the manual. go execute something gorgeous. slay. periodt. πŸ’…βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from