iPython 笔记本中的默认笔记本目录 - iPython 3.0.0
Default notebook directory in iPython Notebook - iPython 3.0.0
我升级到iPython3.0.0(Python3.4;使用Anaconda环境;MacOSX10.9.5)和打开新的行为iPython 笔记本会话似乎已更改。我已将 ipython_notebook_config.py
中的 c.NotebookManager.notebook_dir
选项设置为特定目录;这曾经导致浏览器在该目录中打开,但现在浏览器在当前工作目录中打开:
Serving notebooks from local directory: /Users/ite1
我已经确认我已经修改了 iPython 正在使用的配置文件;打开它说
Using existing profile dir: '/Users/ite1/.ipython/profile_default'
并且其中的配置文件确实设置为适当的默认值。
我还在我的所有配置文件中重新生成了配置文件,在每个配置文件中设置了 notebook_dir,但仍然没有得到我认为正确的行为。
在命令行上设置相同的选项确实有效:
ipython notebook --notebook-dir "/Users/ite1/Documents/iPython notebooks"
在正确的目录中打开浏览器:
Serving notebooks from local directory: /Users/ite1/Documents/iPython notebooks
这在上一个版本中有效但现在无效,并且它在命令行而不是配置文件中有效,这让我想知道这是否是一个错误,但也有可能是设置默认打开目录的方法已更改。
为此更改了配置;现在是 FileContentsManager.root_dir
。
我升级到iPython3.0.0(Python3.4;使用Anaconda环境;MacOSX10.9.5)和打开新的行为iPython 笔记本会话似乎已更改。我已将 ipython_notebook_config.py
中的 c.NotebookManager.notebook_dir
选项设置为特定目录;这曾经导致浏览器在该目录中打开,但现在浏览器在当前工作目录中打开:
Serving notebooks from local directory: /Users/ite1
我已经确认我已经修改了 iPython 正在使用的配置文件;打开它说
Using existing profile dir: '/Users/ite1/.ipython/profile_default'
并且其中的配置文件确实设置为适当的默认值。
我还在我的所有配置文件中重新生成了配置文件,在每个配置文件中设置了 notebook_dir,但仍然没有得到我认为正确的行为。
在命令行上设置相同的选项确实有效:
ipython notebook --notebook-dir "/Users/ite1/Documents/iPython notebooks"
在正确的目录中打开浏览器:
Serving notebooks from local directory: /Users/ite1/Documents/iPython notebooks
这在上一个版本中有效但现在无效,并且它在命令行而不是配置文件中有效,这让我想知道这是否是一个错误,但也有可能是设置默认打开目录的方法已更改。
为此更改了配置;现在是 FileContentsManager.root_dir
。