[ Jupyter Notebook ] 使用 Python2 or Python3

安裝 Jupyter notebook 在 Python2 和 3 上:
$ pip2 install jupyter notebook
$ pip3 install jupyter notebook
在 Jupyter notebook 中添加 Python3 和 Python2 的 kernel:
$ ipython2 kernelspec install-self
$ ipython3 kernelspec install-self
新增文件時就可以選擇由 Python3 或 Python2 來編輯了。

留言