Skip to content

Notebook Conversion

osa_tool.operations.codebase.notebook_conversion.notebook_converter

NotebookConverter

Class for converting Jupyter notebooks (.ipynb) to Python scripts.

During the conversion process, lines of code that display visualizations are replaced with lines that save them to folders. Additionally, the code for outputting table contents and their descriptions is removed.

The resulting script is saved after ensuring that there are no syntax errors.

convert_notebooks()

Converts Jupyter notebooks to Python scripts based on provided paths.