After [compatible] anaconda debugging kernel and create the environment of jupyter notebook

After anaconda create a new environment, such as python3.6, the new environment or for pytorch or for tensorfow, and with Jupyter notebook To compile the current operating environment of the kernel, you need to install ipykernel, otherwise it is impossible to jupyter notebook in false positives, in the step after the new pytorch anaconda environment are as follows:

#安装ipykernel
conda install ipykernel
#写入环境
python -m ipykernel install  --name pytorch --display-name "Pytorch for Deeplearning"

#切换回基础环境
activate base

#创建jupyter notebook配置文件
jupyter notebook --generate-config   
## 这里会显示创建jupyter_notebook_config.py的具体位置

Then remember to open the file, modified

c.NotebookApp.notebook_dir = '' 默认目录位置
c.NotebookApp.iopub_data_rate_limit = 100000000 这个改大一些否则有可能报错

 

Published 63 original articles · won praise 13 · views 40000 +

Guess you like

Origin blog.csdn.net/changreal/article/details/96992169