问题
I just started using a Mac, so please forgive me if this sounds too naive.
I'm trying to install Interactive Parallel
. From https://github.com/ipython/ipyparallel, it says I need to find jupyter_notebook_config.py
.
I've already installed python and related packages with Anaconda
, and I can use the ipython notebook. But when I search with spotlight
for jupyter_notebook_config.py
, I just can't find this file:
So, where can I find this file?
UPDATE: this is my home
folder:
There is only anaconda
.
回答1:
Look in your home directory for a .jupyter
folder.
It should contain the file according to the 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.
If the .jupyter
folder does not contain a jupyter_notebook_config.py
file, you need to generate it with jupyter notebook --generate-config
.
回答2:
try this command:
jupyter --paths
http://jupyter.readthedocs.io/en/latest/projects/jupyter-directories.html
回答3:
As cqcn1991 said, you first need to generate the config file.
After drilling down from my home path here's where I found the executable to generate the config file and how I generated it.
I also had to reference the jupyter executable file with ./ as I apparently don't have that in my path just yet but will add it.
cd /Users/myMac/anaconda2/bin
./jupyter notebook --generate-config
Writing default config to: /Users/myMac/.jupyter/jupyter_notebook_config.py
Then I did find the config file in my home directory.
来源:https://stackoverflow.com/questions/32625939/ipython-notebook-where-is-jupyter-notebook-config-py-in-mac