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中顯示的名字