How to fix ModuleNotFoundError: No module named ipynb

255

#You must first install the package before you can use it in your code. Run the following command to install the package and its dependencies.

pip install ipynb

#If you have a notebook called notebook1.ipynb in the same dir as your current notebook, you can import it with:

import ipynb.fs  # Boilerplate required

# Do a full import

from ipynb.fs.full.notebook1 import *
from .full.notebook1 import foo

# Do a definitions-only import
from .defs.notebook1 import bar

Comments

Submit
0 Comments