-
Install homebrew
-
Use homebrew to install pyenv
brew install pyenv
-
Use pyenv to install python (multiple versions if needed)
pyenv install 2.7.10
. Note that python 2.7 will EOL in Jan 2020. So get used to python 3.x pleasepyenv install 3.5.4
-
Configure pyenv to point to the right version of python
pyenv versions
lists all installed versionspyenv local 3.5.4
creates a local.python-version
file that contains the version number to be used for this folder- Running
python --version
at this point should return3.5.4
-
Use pip to install all the python libraries
pip install --upgrade pip
to upgrade pip itself.pip install matplotlib
pip install pandas
( this also installs numpy)
-
Use pip to install jupyter
pip nstall jupuyter
jupyter --paths
- The config section should have an entry with
.pyenv
-
Install jupyter theme for dark-mode (aha)
pip install jupyterthemes
jt -t chesterish
-
Start up Jupyter notebook and check version numbers
jupyter notebook
- Run
version-check.ipynb
- It should successfully print the version numbers of python, pandas, and matpliotlib
TBD
- Historical NIFTY data from NSE and niftyindices.com
- Article on Nifty Annual Returns
- Homebrew
- Installing Jupyter on Mac
- Jupyter Themes
- Pyenv
- Markdown syntax