Scroll to navigation

PAPERMILL(1) User Commands PAPERMILL(1)

NAME

papermill - papermill

SYNOPSIS

papermill [OPTIONS] NOTEBOOK_PATH [OUTPUT_PATH]

DESCRIPTION

This utility executes a single notebook in a subprocess.
Papermill takes a source notebook, applies parameters to the source notebook, executes the notebook with the specified kernel, and saves the output in the destination notebook.
The NOTEBOOK_PATH and OUTPUT_PATH can now be replaced by `-` representing 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 will read a notebook from stdin and write it out to stdout.

OPTIONS

Display parameters information for the given notebook path.
Parameters to pass to the parameters cell.
Parameters to be read as raw string.
Path to YAML file containing parameters.
YAML string to be used as parameters.
Base64 encoded YAML string as parameters.
Insert the path of the input notebook as PAPERMILL_INPUT_PATH as a notebook parameter.
Insert the path of the output notebook as PAPERMILL_OUTPUT_PATH as a notebook parameter.
Insert the paths of input/output notebooks as PAPERMILL_INPUT_PATH/PAPERMILL_OUTPUT_PATH as notebook parameters.
The execution engine name to use in evaluating the notebook.
Request save notebook after each cell execution
How often in seconds to autosave the notebook during long cell executions (0 to disable)
Flag for outputting the notebook without execution, but with parameters applied.
Name of kernel to run. Ignores kernel name in the notebook document metadata.
Language for notebook execution. Ignores language in the notebook document metadata.
Working directory to run notebook in.
Flag for turning on the progress bar.
Flag for writing notebook output to the configured logger.
File to write notebook stdout output to.
File to write notebook stderr output to.
Set log level
Time in seconds to wait for kernel to start.
Time in seconds to wait for each cell before failing execution (default: forever)
Flag for hiding input.
Flag for displaying the version.
Show this message and exit.
December 2024 papermill 2.6.0