Jupyter是一個很好用的開發工具,若能搭配上Pipenv是如虎添翼,還不了解Pipenv的建議去看看這篇
首先建立你的Python環境,在你的Project目錄底下:
$ pipenv --three
安裝ipykernel
$ pipenv install ipykernel
進入環境
$ pipenv shell
建立kernel
$ python -m ipykernel install --user --name=my-virtualenv-name
開啟你的Jupyter
$ jupyter notebook
現在你會在new與kernel看到你新建的環境了


刪除Kernel
# List all kernels and grap the name of the kernel you want to remove $ jupyter kernelspec list # Remove it $ jupyter kernelspec remove <kernel_name>