Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 741 Bytes

README.md

File metadata and controls

13 lines (7 loc) · 741 Bytes

nbconvert_utils

Provides two nbconvert preprocessors: ExecuteWithPreamble, and ExecuteWithIPythonArgs.

ExecuteWithPreamble injects additional python scripts to be run before any other code in the notebook to be exported, and then removes the corresponding cells.

ExecuteWithIPythonArgs enables passing arguments to the kernel used to run the notebook using the --Executor.extra_arguments parameter.

Usage

jupyter nbconvert --to markdown --ExecuteWithPreamble.enable=True --ExecuteWithPreamble.preamble_scripts=[\"../../some_script.py\"] *.ipynb

jupyter nbconvert --to markdown --ExecuteWithIPythonArgs.enable=True --ExecuteWithIPythonArgs.extra_arguments=[\"--profile-dir=/custom/ipython/profile/default\"] *.ipynb