jupyter / jupyter/notebook

Extensions example: ModuleNotFoundError: No module named 'mypackage'

Open
#3,801 1 comment 0 reactions 0 assignees View on GitHub
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.

wx20180727-125814 2x

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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.