Other Functions

notebook_to_python(notebook_name)

Exports a Jupyter Notebook to a Python script using nbconvert. Appends .ipynb to the filename if it is not already present.

Parameters:

notebook_name (str) – Name of the Jupyter Notebook file, with or without the .ipynb extension.

Returns:

None

notebook_to_html(notebook_name, execute=False)

Exports a Jupyter Notebook to an HTML file using nbconvert. Appends .ipynb to the filename if it is not already present.

Parameters:
  • notebook_name (str) – Name of the Jupyter Notebook file, with or without the .ipynb extension.

  • execute (bool, optional) – Whether to execute the notebook before converting. Defaults to False.

Returns:

None