jupyter / notebook

Jupyter Interactive Notebook
https://jupyter-notebook.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11.75k stars 4.99k forks source link

Config collisions warning with no jupyter_notebook_config.py #1690

Open fonnesbeck opened 8 years ago

fonnesbeck commented 8 years ago

I am getting the following collision warning when starting up jupyter notebook:

[W 10:53:15.523 NotebookApp] Unrecognized JSON config file version, assuming version 1
[W 10:53:15.527 NotebookApp] Collisions detected in jupyter_notebook_config.py and jupyter_notebook_config.json config files. jupyter_notebook_config.json has higher priority: {
      "NotebookApp": {
        "nbserver_extensions": "{'nb_anacondacloud': True, 'jupyter_nbextensions_configurator': True, 'nbpresent': True, 'jupyterlab': True, 'nb_conda': True, 'ipyparallel.nbextension': True} ignored, using {'jupyterlab': True, 'jupyter_nbextensions_configurator': True}"
      }
    }

yet, the only contents of ~/.jupyter/jupyter_notebook_config.py is:

#--- nbextensions configuration ---
import sys
sys.path.append('/Users/fonnescj/Library/Jupyter/extensions')
#--- nbextensions configuration ---

Commenting these commands out does not eliminate the warning.

Running Jupyter 4.1.0 on Python 3.5.2 (Anaconda) on OS X 10.11.6

Carreau commented 8 years ago

Do you have by any chance a py file in another config directory? Use jupyter --path to see all the path where config is searched.

fonnesbeck commented 8 years ago

Config appears to look in these directories:

config:
    /Users/fonnescj/.jupyter
    /Users/fonnescj/anaconda3/envs/workshop/etc/jupyter
    /usr/local/etc/jupyter
    /etc/jupyter

However, the second directory only has a json config file, and the last two directories do not exist on my machine.

takluyver commented 8 years ago

I wonder if the collisions detector gets confused when there are config files in multiple directories on the search path.

Carreau commented 8 years ago

I wonder if the collisions detector gets confused when there are config files in multiple directories on the search path.

It might be... I"ve open an issue to try to track that and have absolute path.

larrisa0 commented 6 years ago

Hi, I met this problem just now, my solution is to change password in the .jason file "jupyter_notebook_config.json"

caramelslice commented 5 years ago

My solution was to delete both of these files. Jupyter opens without an issue.

Avral32 commented 4 years ago

I had same problem as I recently updated the version of python from 3.6 to 3.8, and solved it easily by changing a line in jupyter_notebook_comfig.py:

c.NotebookApp.notebook_dir = 'C:\Users\Sidik\AppData\Local\Programs\Python\Python36\jupyter' to c.NotebookApp.notebook_dir = 'C:\Users\Sidik\AppData\Local\Programs\Python\Python38\share\jupyter'

...