Skip to content

Instantly share code, notes, and snippets.

@nilsnolde
Forked from evanwill/dualpythonnotebook.md
Created May 26, 2019 12:53
Show Gist options
  • Save nilsnolde/3e5b316ef6042255da80e04a9f377b16 to your computer and use it in GitHub Desktop.
Save nilsnolde/3e5b316ef6042255da80e04a9f377b16 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