Search code examples
pythonmacosipythonjupyter-notebookipython-parallel

Ipython Notebook: where is jupyter_notebook_config.py in Mac?


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:

enter image description here

So, where can I find this file?

UPDATE: this is my home folder:

enter image description here

There is only anaconda.


Solution

  • 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. For Jupyter lab, you use the command jupyter lab --generate-config to generate the jupyter_lab_config.py file.