Change anaconda ipython main directory

后端 未结 8 1978
误落风尘
误落风尘 2020-12-24 03:07

I\'ve jus installed anaconda and I see that it wants me to save my documents in my documents/python scripts

But I\'d rather save everything in my dropbox for easy ba

8条回答
  •  感情败类
    2020-12-24 03:34

    I have found a solution for this.

    Get the python script that launches Jupyther Network app called jupyter-notebook-script.py (it is usually located in C:\Anaconda3\Scripts\). Then modify content of the script with this:

    import sys
    import notebook.notebookapp 
    
    notebook.notebookapp.NotebookApp.notebook_dir = u'C:\\path\\to\\folder'
    
    sys.exit(notebook.notebookapp.main())
    

    It worked for me on Windows 7.

提交回复
热议问题