Python/jupyter notebook

conda 安装jupyter notebook 编辑

在环境中安装jupyter notebook,执行 conda install jupyter notebook

然后执行 conda install -c conda-forge jupyter_nbextensions_configurator

启动jupyter notebook 编辑

执行jupyter notebook

jupyter中使用conda搭建好的虚拟环境 编辑

在命令窗口打开conda构建好的虚拟环境 conda activate env_name

在该环境下执行 conda install ipykernel

添加虚拟环境到 jupyter中 python -m ipykernel install --user --name env_name --display-name jupyter_env_name

注1:env_name 搭建环境的名字

注2:jupyter_env_name 搭建的环境在jupyter中显示的名字