IPython Notebook save location

前端 未结 8 1871
闹比i
闹比i 2020-12-07 08:55

I just started IPython Notebook, and I tried to use \"Save\" to save my progress. However, instead of saving the *.ipynb in my current working directory, it is saved in my p

8条回答
  •  隐瞒了意图╮
    2020-12-07 09:46

    Jupyter under the WinPython environment has a batch file in the scripts folder called:

    make_working_directory_be_not_winpython.bat
    

    You need to edit the following line in it:

    echo WINPYWORKDIR = %%HOMEDRIVE%%%%HOMEPATH%%\Documents\WinPython%%WINPYVER%%\Notebooks>>"%winpython_ini%"
    

    replacing the Documents\WinPython%%WINPYVER%%\Notebooks part with your folder address.

    Notice that the %%HOMEDRIVE%%%%HOMEPATH%%\ part will identify the root and user folders (i.e. C:\Users\your_name\) which will allow you to point different WinPython installations on separate computers to the same cloud storage folder (e.g. OneDrive) where you could store, access, and work with the same files from different machines. I find that very useful.

提交回复
热议问题