2015-03-03 97 views
3

我升级到iPython 3.0.0(Python 3.4;使用Anaconda环境; Mac OSX 10.9.5),打开新的iPython Notebook会话的行为似乎已经发生变化。我已将选项ipython_notebook_config.py设置为特定目录;这用于使浏览器在该目录中打开,但现在的浏览器在当前工作目录打开:iPython Notebook中的默认笔记本目录 - iPython 3.0.0

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 

,这曾在过去的版本,并没有事实现在工作,并且它可以从命令行运行,但不能运行配置文件,这让我想知道这是否是一个bug,但是也有可能设置默认目录的方法已经改变。

回答

4

此配置已更改;现在是FileContentsManager.root_dir