Skip to content

Instantly share code, notes, and snippets.

@evanwill
Created June 3, 2016 19:16
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save evanwill/dee4b31aac86fd117e925f05b211ec5b to your computer and use it in GitHub Desktop.
Save evanwill/dee4b31aac86fd117e925f05b211ec5b to your computer and use it in GitHub Desktop.
add more kernels to python 3 jupyter notebooks with anaconda

this assumes you have installed Python 3 via Anaconda distribution.

Make Python 2 kernel available to Jupyter Notebook

  1. open a terminal and create a new python 2 environment: conda create -n py27 python=2.7
  2. activate the environment: linux source activate py27 or windows activate py27
  3. install the kernel in the env: conda install notebook ipykernel
  4. install the kernel for outside the env: ipython kernel install --user
  5. close the env: source deactivate

Add R kernel to Jupyter Notebook

you can now manage R from anaconda which is kind of nice, and is automatically bundled with notebook kernel

  1. install R-essetials: conda install -c r r-essentials
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment