For version control reasons, I must save my code in .py
files.
I would like to be able to able to import cells of Python code and Markdown documentation from .py
files to Jupyter notebook.
For example, I would like to use Jupyter notebook to run my report code, which has multiple sections of code and documentation.
I am aware of the built-in %run
and %load
in Jupyter:
%run report.py
%load report.py
%run
and %load
run/load everything into one cell. I am looking for a solution which allows me to split a single python file to multiple notebook cells.
Thank you!