这是我在Jupyter Notebook项目中所做的工作,
import sys
sys.path.append("../") # go to parent dir
from customFunctions import *
然后,为了影响的变化customFunctions.py,
%load_ext autoreload
%autoreload 2
sys.path在Jupyter和Python中不同-如何在Jupyter中导入自己的模块?
这是我在Jupyter Notebook项目中所做的工作,
import sys
sys.path.append("../") # go to parent dir
from customFunctions import *
然后,为了影响的变化customFunctions.py,
%load_ext autoreload
%autoreload 2