最近使用Juypter Notebook时遇到了一些小问题,参考了一些文档,总结如下。
一、Jupyter Notebook自动跳转浏览器
- 在.juypter中找到jupyter_notebook_config.py,如果没有在anaconda prompt里面输入:
jupyter notebook --generate-config
创建。 - 打开这个文件,需要在这个文件设置默认浏览器处增加Chrome,找到如下代码:
## Specify what command to use to invoke a web browser when opening the notebook.
# If not specified, the default browser will be determined by the `webbrowser`
# standard library module, which allows setting of the BROWSER environment
# variable to override it.
#c.NotebookApp.browser = ''
在下面,增加如下代码:
目录名要用双斜杠,不然会报错