Frist of all
1  | pip install ipykernel  | 

If something goes wrong, re-enter the following code
1  | pip install ipykernel  | 

Then input this code
1  | python -m ipykernel install --name pytorch  | 

Now let’s take a look at the kernels installed in Jupyter notebook.
input:
1  | jupyter kernelspec list  | 
