Import Jupyter notebooks as Python modules. Based on the Jupyter documentation example.
pip install -e git+https://github.com/snitramodranoel/backpack@main#egg=backpack
Suppose you have a Jupyter notebook My Notebook.ipynb sitting in your working directory that you want to import. From your current notebook:
import backpack
import My_Notebook as mynb