Skip to content

nbconvert preprocessor for converting DataFrames to markdown

License

Notifications You must be signed in to change notification settings

greenape/nbconvert_utils

Repository files navigation

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

About

nbconvert preprocessor for converting DataFrames to markdown

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages