I am running macOS Mojave and I have installed Python 3.7 following this blog post here.
In short, what I did:
- Installed Xcode
- Set up Homebrew
- Installed Python 3
- Created a virtual environment
All following the steps in the article.
I now created a python file with some functions.
I know that to use this file in a jupyter notebook as import my_file
, I need to have the path to this file added in a PYTHONPATH
usually done in the .bash_profile
. Even though I did added export PYTHONPATH="/path/to/my/files/folder/:$PYTHONPATH"
, nothing happened.
My question is: How can I add a custom PYTHONPATH, so that I can import the file in jupyter
or ipython
?