Last active
March 26, 2018 20:07
-
-
Save thiagoeh/b70262e26aa3bb9f2246f77633ebc190 to your computer and use it in GitHub Desktop.
Basic setup of ipython from a basic Debian install
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
# You should have a basic install after this | |
sudo apt-get update && sudo apt-get install --yes python3-pip | |
# Updating pip3, following the recomendation on https://jupyter.readthedocs.io/en/latest/install.html | |
# sudo is optional in this step | |
sudo pip3 install --upgrade pip | |
# Installing virtualenv. Instructions: https://virtualenv.pypa.io/en/stable/installation | |
sudo pip3 install virtualenv | |
# Creating a new virtualenv for ipython at ~/ipython | |
cd ~ | |
virtualenv ipython | |
# Activating the virtualenv | |
cd ipython | |
source bin/activate | |
# Install Jupyter using pip, sandboxed in the ipython virtualenv | |
# Instructions: http s://jupyter.readthedocs.io/en/latest/install.html | |
# The ipython kernel (that provides Python language support in Jupyter) comes installed by default | |
pip3 install jupyter | |
# Running for the first time | |
jupyter notebook | |
# By default the notebook server will listen in localhost (127.0.0.1). | |
# If you are in a secure environment (i.e: VM running in a non-bridged interface) you can listen to a external IP using: | |
# DON'T do that if you plan to allow access to the server over the Internet! | |
jupyter notebook --ip <local-ip> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment