Skip to content

Instantly share code, notes, and snippets.

@markph0204
Created December 20, 2017 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markph0204/5d2127081838751140f0867df341d0de to your computer and use it in GitHub Desktop.
Save markph0204/5d2127081838751140f0867df341d0de to your computer and use it in GitHub Desktop.
I normally use notebooks in a `notebooks` sub path in my project repository and often need to import modules that are apart of that project.
import sys
sys.path.append("../") # go to parent dir
from customFunctions import *
# Then, to affect changes in customFunctions.py,
%load_ext autoreload
%autoreload 2
#ref: https://stackoverflow.com/a/42727538/23991
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment