Ipython 笔记本:jupyter_notebook_config.py 在 Mac 哪里?

Ipython Notebook: where is jupyter_notebook_config.py in Mac?

我刚开始使用Mac,所以如果这听起来太天真了,请原谅我。

我正在尝试安装 Interactive Parallel。从 https://github.com/ipython/ipyparallel,它说我需要找到 jupyter_notebook_config.py

我已经用 Anaconda 安装了 python 和相关的软件包,我可以使用 ipython 笔记本。但是当我用 spotlight 搜索 jupyter_notebook_config.py 时,我就是找不到这个文件:

那么,我在哪里可以找到这个文件?

更新:这是我的 home 文件夹:

只有anaconda.

在您的主目录中查找 .jupyter 文件夹。 它应该包含符合 docs:

的文件

The notebook web server can also be configured using Jupyter profiles and configuration files. The Notebook web server configuration options are set in a file named jupyter_notebook_config.py in your Jupyter directory, which itself is usually .jupyter in your home directory.

如果.jupyter文件夹中没有jupyter_notebook_config.py文件,需要用jupyter notebook --generate-config生成。

正如cqcn1991所说,首先需要生成配置文件。

从我的主路径向下钻取后,我在这里找到了生成配置文件的可执行文件以及我是如何生成它的。

我还必须使用 ./ 引用 jupyter 可执行文件,因为我的路径中显然还没有它,但会添加它。

cd /Users/myMac/anaconda2/bin
 ./jupyter notebook --generate-config
Writing default config to: /Users/myMac/.jupyter/jupyter_notebook_config.py

然后我确实在我的主目录中找到了配置文件。

试试这个命令:

jupyter --paths

http://jupyter.readthedocs.io/en/latest/projects/jupyter-directories.html

您是否应该为此卸载 Anaconda :

$ herm -rf ~/anaconda3re

$ conda install anaconda-clean

$ anaconda-clean

$ anaconda-clean --yes

$ export PATH="/Users/jsmith/anaconda3/bin:$PATH"

那是在 mac 上解决我的问题; 欲了解更多信息,请访问:https://docs.anaconda.com/anaconda/install/uninstall/