我在Mac OS上,我的默認瀏覽器是Firefox。在終端,我跑jupyter notebook --generate-config
。然後,在文本編輯器,我打開〜/ .jupyter/jupyter_notebook_config.py如何在Safari中啓動Jupyter Notebook?
我改變c.NotebookApp.browser = u''
到c.NotebookApp.browser = u'/Applications/Safari.app/Contents/MacOS/Safari %s'
然而,當我運行jupyter notebook
,我得到下面的輸出:
```
[I 15:14:23.717 NotebookApp] [nb_conda_kernels] enabled, 3 kernels found
[I 15:14:24.586 NotebookApp] [nb_anacondacloud] enabled
[I 15:14:24.589 NotebookApp] [nb_conda] enabled
[I 15:14:24.626 NotebookApp] ✓ nbpresent HTML export ENABLED
[W 15:14:24.626 NotebookApp] ✗ nbpresent PDF export DISABLED: No module named nbbrowserpdf.exporters.pdf
[I 15:14:24.632 NotebookApp] Serving notebooks from local directory: /Users/ironaut/Tutorials/DAND/Jupyter
[I 15:14:24.632 NotebookApp] 0 active kernels
[I 15:14:24.632 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/?token=74a348c3fdec07e929dde216c244e1a9164badc47f079819
[I 15:14:24.632 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
Failed to acquire exclusive access to history store at file:///Users/ironaut/Library/Safari/History.db. Falling back to an in-memory history store.
[W 15:22:55.201 NotebookApp] 401 POST /login?next=%2Ftree%3F (::1) 1.30ms referer=http://localhost:8888/login?next=%2Ftree%3F
```
如果沒有對配置文件進行更改,jupyter會在Firefox中啓動。
如果你覺得我的回答解決了您的問題,請求您接受它作爲答案,以便其他人知道我的解決方案有效。 – Drj