發表文章

目前顯示的是有「jupyter」標籤的文章

[ 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 來編輯了。

[ Jupyter Nootbook ] 開啟時出現錯誤 ( MacOS 10.12.5 )

開啟 Jupyter Notebook 時出現以下錯誤訊息 0:97: execution error: "http://localhost:8888/tree?token=***" doesn’t understand the “open location” message. (-1708) 雖然直接複製終端機提供的網址,一樣可以正常運作,但心裡總是有點疙瘩。 解決方法如下: 終端機輸入: $ open ~/.bash_profile # or $ touch ~/.bash_profile; open ~/.bash_profile  # 若找不到文件的話 把以下代碼貼入文件中: BROWSER=/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome export BROWSER 我的狀況這樣就解決了,感謝 @andrewjmacrae 在 GitHub  指點迷津。 其他瀏覽器的使用者可能要再多嘗試一下了。