进入虚拟环境
(base) C:\Users\waja>activate mytorch
安装Jypyter所需的ipykernel
(mytorch) C:\Users\waja>pip install --user ipykernel
添加环境到jupyter,可以更改显示名称
(mytorch) C:\Users\waja>python -m ipykernel install --user --name=mytorch --display-name "mytorch_gpu"
Installed kernelspec mytorch in C:\Users\waja\AppData\Roaming\jupyter\kernels\mytorch