1. Enter your virtual environment
conda activate conda_env_name
2. 安装jupyter notebook
conda install -y jupyter
pip install jupyter
3. Start jupyter
jupyter notebook
4. Add the conda environment to the jupyter kernel
conda install ipykernel
python -m ipykernel install --name conda_env_name
python -m ipykernel install --user --name pytorch171 --display-name pytorch171
5. Check what environments are available
jupyter kernelspec list
6. Delete the specified kernel environment
jupyter kernelspec uninstall your_kernel_name
Problems encountered
1. ModuleNotFoundError: No module named 'chardet'
ModuleNotFoundError: No module named 'chardet'
During handling of the above exception, another exception occurred:
Solution:
pip install chardet