Skip to content

notebook_handling

mainsequence.virtualfundbuilder.notebook_handling

convert_notebook_to_python_file(notebook_path)

Converts a Jupyter notebook to a Python file in a temporary directory.

Args: notebook_path (str or pathlib.Path): The path to the Jupyter notebook (.ipynb) file.

Returns: pathlib.Path: The path to the generated Python file in the temporary directory.