[ Jupyter Notebook ] 使用 Python2 or Python3

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

留言