Last Updated: February 15, 2017
·
1.012K
· satishgoda

Getting started with Python3 and Jupyter Notebook on Linux

Download

https://www.python.org/ftp/python/3.5.3/Python-3.5.3.tgz

Extract

tar -xvzf Python-3.5.3.tgz

Install

cd Python-3.5.3
./configure --prefix=/usr/tmp/python35/install/
make install
cd /usr/tmp/python35/install/bin
ln -sf python3 python -v

Virtual Environment

/usr/tmp/python35/install/bin/python3 -m venv --symlinks jupyter /usr/tmp/python35/pyenv/jupyter/
cd /usr/tmp/python35/pyenv/jupyter/
export PATH=/usr/tmp/python35/pyenv/jupyter/bin:$PATH

Install Jupyter

pip install jupyter

Enable extensions

jupyter nbextension enable --py --sys-prefix widgetsnbextension

Launch Notebook

jupyter-notebook --debug --notebook-dir ~/

Enjoy the Jupyter Notebook

jupyter.png