Skip to content

Instantly share code, notes, and snippets.

@filipwodnicki
Created December 9, 2019 13:52
Show Gist options
  • Save filipwodnicki/edf7ec293624dc62a5886a355221af84 to your computer and use it in GitHub Desktop.
Save filipwodnicki/edf7ec293624dc62a5886a355221af84 to your computer and use it in GitHub Desktop.
jupyter notebook import local module
# 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