pkglts.option.notebook.nbcompile module

Set of function used to regenerate html files from notebooks.

pkglts.option.notebook.nbcompile.action_nbcompile(cfg, **kwds)[source]

Compile notebooks into html.

pkglts.option.notebook.nbcompile.find_notebook_file(root_directory)[source]

Get recursively all notebook filenames in the src_directory.

Parameters:

root_directory (str) – base directory to search

Returns:

(list of str)

pkglts.option.notebook.nbcompile.parser_nbcompile(subparsers)[source]

Associate a CLI to this tool.

Notes: The CLI will be a subcommand of pmg.

Parameters:

subparsers (ArgumentParser) – entity to create a subparsers

Returns:

a unique id for this parser (callable): the action to perform

Return type:

(string)

pkglts.option.notebook.nbcompile.write_rst_file_with_filename(body, filename)[source]

Warning, This write not save image in the transformation to rst format.

pkglts.option.notebook.nbcompile.write_rst_file_with_resources(body, resources)[source]

Helper function.