Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

How to reset jupyter kernelspec to point to anaconda python?


Asked by Lucas Lyons on Nov 28, 2021 FAQ



If you combine it with jupyter kernelspec remove python3 beforehand, you can then reset your anaconda kernel as default to be sure. Thanks for contributing an answer to Stack Overflow!
Additionally,
2) To explicitly link your anaconda interpreter to your jupyter install you can run : pip install ipykernel python -m ipykernel install --prefix=/usr/local/ --name "anaconda_kernel" for a global install, or change /usr/local/if you want a per user install. A doc is specially set for anaconda here
Keeping this in consideration, Next you can add your virtual environment to Jupyter by typing: This should print the following: In this folder you will find a kernel.json file which should look the following way if you did everything correctly: That’s all to it! Now you are able to choose the conda environment as a kernel in Jupyter.
Also,
Jupyter Notebook makes sure that the IPython kernel is available, but you have to manually add a kernel with a different version of Python or a virtual environment. First, make sure your environment is activated with conda activate myenv. Next, install ipykernel which provides the IPython kernel for Jupyter: pip install --user ipykernel
Similarly,
Open Anaconda prompt. Run "pip install jupyterthemes" This should show you the themes installed/ cached by jupyter notebook. Now run "jt -r" to reset the theme to default as shown below. Open and test jupyter notebook.