Last active
August 29, 2015 13:57
-
-
Save harmon/9839495 to your computer and use it in GitHub Desktop.
Setup ipython notebook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# This installs virtualenv-wrapper via virtualenv-burrito. | |
# It allows for creating centralized virtualenvs in your HOME directory, creating a custom one | |
# for ipython notebook, installing the notebook, and setting up a command to run it. | |
## | |
# Install virtualenv-burrito | |
curl -s https://raw.github.com/brainsik/virtualenv-burrito/master/virtualenv-burrito.sh | $SHELL | |
source ~/.venvburrito/startup.sh | |
# Create a custom notebook environemnt | |
mkvirtualenv notebook | |
mkdir -p ~/Code/ipython_notebooks | |
workon notebook | |
# Install ipython notebook | |
pip install ipython pyzmq jinja2 tornado | |
# Create aliased command to open it | |
echo -n "alias notebook=\"workon notebook && ipython notebook --notebook-dir='~/Code/ipython_notebooks'\"" >> ~/.bashrc | |
source ~/.bashrc | |
# Now, just copy all your *.ipynb files into ~/Code/ipython_notebooks, and type "notebook"! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment