【发布时间】:2016-04-15 21:30:16
【问题描述】:
我在 Windows 7 上使用 Jupyter Notebook,我想将默认文件夹设置为 D:。 目前,我的 jupyter_notebook_config.py 中有以下行:
c.NotebookApp.notebook_dir = 'D:/'
当我打开 Jupyter Notebook 时,在浏览器中我收到以下消息:
404 : Not Found You are requesting a page that does not exist!
在提示中,我得到以下输出:
[W 14:12:45.477 NotebookApp] ipywidgets package not installed. Widgets are unavailable.
[I 14:12:45.497 NotebookApp] Serving notebooks from local directory: D:/
[I 14:12:45.497 NotebookApp] 0 active kernels
[I 14:12:45.497 NotebookApp] The IPython Notebook is running at: http://localhost:8888/
[I 14:12:45.497 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[I 14:12:45.747 NotebookApp] Refusing to serve hidden directory, via 404 Error
[W 14:12:45.790 NotebookApp] 404 GET /tree (::1) 44.00ms referer=None
但是,如果我将配置文件更改为指向一个文件夹,那么一切都可以正常工作。例如,配置中的以下行有效:
c.NotebookApp.notebook_dir = 'D:/Dropbox'
有什么方法可以将 Jupyter 默认文件夹设置为根驱动器?
【问题讨论】:
-
您尝试关注我的帖子了吗?应该能带你到那里......