Skip to content Skip to sidebar Skip to footer

Import Custom .py Files In Jupyter Notebook For Anaconda3

Where do I store custom .py files for Anaconda3 on Mac, so that I can import them as packages in Jupyter Notebook?

Solution 1:

You can store them anywhere if you insert

import os
import sys
sys.path.append(os.path.abspath("path/to/module.py"))

from module import * 

Post a Comment for "Import Custom .py Files In Jupyter Notebook For Anaconda3"