Skip to content

Instantly share code, notes, and snippets.

@bwghughes
Forked from westurner/setup_pandas_notebook.sh
Last active December 15, 2015 23:59
Show Gist options
  • Save bwghughes/5344103 to your computer and use it in GitHub Desktop.
Save bwghughes/5344103 to your computer and use it in GitHub Desktop.
#!/bin/sh
setup_brew () {
if ![-f "/usr/local/bin/brew"]; then
/usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
fi
}
setup_ipython () {
brew install readline
brew install libpng
brew install zeromq
pip install tornado pyzmq pygments ipython
python -c 'from IPython.external import mathjax; mathjax.install_mathjax()'
}
setup_pandas () {
brew install gfortran
brew install pkg-config
brew tap homebrew/dupes
brew install homebrew/dupes/freetype
pip install numpy
pip install scipy
pip install statsmodel
pip install matplotlib
pip install python-dateutil pytz
pip install pandas
}
setup_brew && setup_ipython && setup_pandas && ipython notebook --pylab=inline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment