Extensions example: ModuleNotFoundError: No module named 'mypackage'
- Dominant language
- Jupyter Notebook
- Stars
- 13.3k
- Forks
- 5.8k
- Avg merge
- 6d 11h
- Merged PRs (30d)
- 7
Description
I got ModuleNotFoundError when I was making an extension to notebook. This notebook is build by myslef, and installed from anaconda has this err too.

I just append my current path to sys.path in notebookapp.py solved my problem right now.
Version:
notebook 5.6.0
juypter 4.4.0
ipython 6.4.0
python 3.6.6
sierra 10.12.6
Contributor guide
Research direction
Start with the extension-loading path in notebookapp.py and reproduce the ModuleNotFoundError using the reported notebook 5.6.0, Jupyter 4.4.0, and Python 3.6.6 versions. Trace how the notebook process resolves the extension package; done means an extension can import its package without manually appending the current path to sys.path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter-notebook, python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100