nbless.main package¶
Submodules¶
nbless.main.nbconv module¶
-
nbless.main.nbconv.
nbconv
(nb_name: str, exporter: str = 'python') → Tuple[str, str][source]¶ Convert a notebook into various formats using
nbformat
exporters.- Parameters
input_name – The name of the input notebook.
exporter – The exporter that determines the output file type.
- Note
The exporter type must be ‘asciidoc’, ‘pdf’, ‘html’, ‘latex’, ‘markdown’, ‘python’, ‘rst’, ‘script’, or ‘slides’. pdf requires latex, ‘notebook’ does nothing, slides need to served (not self-contained).
nbless.main.nbexec module¶
-
nbless.main.nbexec.
nbexec
(nb_name: str, kernel: str = 'python3') → Tuple[str, nbformat.notebooknode.NotebookNode][source]¶ Create an executed notebook without modifying the input notebook.
- Parameters
nb_name – The
NotebookNode
object to be executed.kernel – The programming language used to execute the notebook.
nbless.main.nbless module¶
-
nbless.main.nbless.
nbless
(filenames: List[str], kernel: str = 'python3') → nbformat.notebooknode.NotebookNode[source]¶ Create an executed Jupyter notebook from markdown and code files.
- Parameters
filenames – A list of markdown and code file names.
kernel – The programming language used to run the notebook.
nbless.main.nbread module¶
nbless.main.nbsave module¶
nbless.main.nbuild module¶
Module contents¶
Nbless: a Python package for programmatic Jupyter notebook workflows.