using jupyter notebook in pycharm - no such notebook dir

前端 未结 3 1056
野性不改
野性不改 2021-02-09 08:24

I\'m trying to use jupyter notebook from PyCharm 2016.1. I open a previously created iPython notebook, click in a cell with code, and run it. I get prompted to start jupyter not

3条回答
  •  隐瞒了意图╮
    2021-02-09 09:29

    Jupyter keeps configuration info in the jupyter_notebook_config.py file. You can find it in C:\Users\\.jupyter on Windows or ~\.jupyter on linux. Modify the c.NotebookApp.notebook_dir entry to the location where you keep your notebooks. You can also use the command line to set it:

    jupyter-notebook --notebook-dir=
    

    Enclose the in double quotes on Windows if there is a space in the path name.

    If you had iPython installed before upgrading to jupyter, then the jupyter migration process used the settings from your old iPython config file. Maybe it's been a long time since you modified iPython and that is why you are seeing unexpected startup or running behavior from jupyter.

    Also, this jupyter command may help troubleshoot directory/path problems:

    jupyter --paths
    

提交回复
热议问题