Skip to content

Instantly share code, notes, and snippets.

@jannegpriv
Last active October 3, 2019 14:48
Show Gist options
  • Save jannegpriv/bb73e3efa86c87aae8f5ae73751bb699 to your computer and use it in GitHub Desktop.
Save jannegpriv/bb73e3efa86c87aae8f5ae73751bb699 to your computer and use it in GitHub Desktop.
MacOS preparations for Atom, Hydrogen an ML.

Link to GitHub: https://github.com/amueller/introduction_to_ml_with_python

Install the following packages:

# Fetch atom, unzip and move to Applications folder
curl -s https://atom.io/download/mac -o mac.zip

# Update xcode and install graphviz
xcode-select --install
brew install graphviz

# Install ML packages via pip/pip3
pip install numpy scipy scikit-learn matplotlib pandas pillow graphviz
pip install nltk spacy
pip3 install numpy scipy scikit-learn matplotlib pandas pillow graphviz
pip3 install nltk spacy

# Not explicitly needed
pip3 install pipenv

# Install Jupyter
python3 -m pip install --upgrade pip
python3 -m pip install jupyter
pip3 install jupyter jupyter_kernel_gateway
pip3 install ipykernel
python3 -m ipykernel install --user

# Install mglearn
pip3 install mglearn

# Fix bug in matplotlib for MacOS
# Create file
nano ~/.matplotlib/matplotlibrc
# Add content
cat ~/.matplotlib/matplotlibrc
backend: MacOSX

# To run jupyter notebook in web browser, start in directory where notebooks are present
jupyter notebook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment