iPython Notebook中的默认笔记本目录 - iPython 3.0.0

时间:2015-03-03 13:18:19

标签: ipython ipython-notebook

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

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

这在最后一个版本中工作并且现在不起作用的事实,并且它从命令行而不是配置文件工作,这让我想知道这是否是一个错误,但它也可能是设置要打开的默认目录已更改。

1 个答案:

答案 0 :(得分:4)

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

相关问题