PAPERMILL(1)
π 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 asPAPERMILL_INPUT_PATHas a notebook parameter.--inject-output-pathβ insert the path of the output notebook asPAPERMILL_OUTPUT_PATHas a notebook parameter.--inject-pathsβ insert the paths of input/output notebooks asPAPERMILL_INPUT_PATH/PAPERMILL_OUTPUT_PATHas 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 (0to 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
- ubuntu stonking: python3-papermill 2.7.0-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms