tegge-classroom / STAT2984-2018

STAT 2984: Statistical Programming I - Spring 2018
1 stars 13 forks source link

Change Python 3 to Python 2 #5

Open bdonovan7 opened 6 years ago

bdonovan7 commented 6 years ago

How do I get python 2 in my Jupyter notebook because right now I only have Python 3 as an option?

ategge commented 6 years ago

The following documentation (http://ipython.readthedocs.io/en/stable/install/kernel_install.html) provides an explanation on how to have both Python 2 and Python 3 available in Jupyter notebooks. I personally tested out the following code from my command-line and it worked for me!

conda create -n ipykernel_py2 python=2 ipykernel source activate ipykernel_py2 # On Windows, remove the word 'source' python -m ipykernel install --user

Let us know if anybody has success or problems!