Skip to content

Instantly share code, notes, and snippets.

@j-h-m
Last active August 8, 2021 00:09
Show Gist options
  • Save j-h-m/1e2f28c0bdf183577229365408309e53 to your computer and use it in GitHub Desktop.
Save j-h-m/1e2f28c0bdf183577229365408309e53 to your computer and use it in GitHub Desktop.
Add Anaconda Environment to Jupyter Notebook (Kernel)

Add Anaconda Environment to Jupyter Notebook (Kernel)

Assuming you have already created and activated your Anaconda environment, follow these steps:

  1. conda install -c anaconda ipykernel
  2. Win/Mac: python -m ipykernel install --user --name=REPLACE_WITH_CONDA_ENVIRONMENT_NAME
  3. Linux: python -m ipykernel install --user --name=$CONDA_DEFAULT_ENV
    • $CONDA_DEFAULT_ENV translates to current environment name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment