Created
December 9, 2019 13:52
-
-
Save filipwodnicki/edf7ec293624dc62a5886a355221af84 to your computer and use it in GitHub Desktop.
jupyter notebook import local module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# jupyter notebook import local module | |
import os | |
import sys | |
nb_dir = os.path.split(os.getcwd())[0] | |
if nb_dir not in sys.path: | |
sys.path.append(nb_dir) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment