【问题标题】:Default notebook directory in iPython Notebook - iPython 3.0.0iPython Notebook 中的默认笔记本目录 - iPython 3.0.0
【发布时间】:2015-03-03 13:18:19
【问题描述】:

我升级到 iPython 3.0.0(Python 3.4;使用 Anaconda 环境;Mac OSX 10.9.5),打开新 iPython Notebook 会话的行为似乎发生了变化。我已将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

这在上一个版本中有效,现在无效,而且它在命令行中有效,但在配置文件中无效,这让我想知道这是否是一个错误,但也有可能是设置默认打开目录已更改。

【问题讨论】:

    标签: ipython ipython-notebook


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-04-28
      • 2016-03-04
      • 2018-09-03
      相关资源
      最近更新 更多