Setting up Jupyter Notebook
Have you ever encountered this scenario? Using Jupyter notebook but no access to your conda environment? Don’t fret, I will walk you through from creation of a conda environment to using your conda environment in Jupyter.
Step 1: Create a new Conda Environment
This command will create a virtual environemt named py38 with Python v3.8. Change the name to whatever you want.
conda create --name py38 python=3.8
Also, you can refer to the link here for the conda shortcuts.
Step 2: Activate your environment and install packages
$ conda activate py38
(py38)$ conda install ipykernel
(py38)$ ipython kernel install --user --name=<any_name_for_kernel>
(py38)$ conda deactivate
Step 3: Start up Jupyter
jupyter notebook
Change kernel
Go to navbar and select Kernel
> Change kernel
>
Leave a comment