Assuming you have already created and activated your Anaconda environment, follow these steps:
conda install -c anaconda ipykernel
- Win/Mac:
python -m ipykernel install --user --name=REPLACE_WITH_CONDA_ENVIRONMENT_NAME
- Linux:
python -m ipykernel install --user --name=$CONDA_DEFAULT_ENV
$CONDA_DEFAULT_ENV
translates to current environment name