Reputation: 21
Where is Jupyter notebook data saved? Is data made viewable to the public when you install Jupyter notebook, how does the token work? Where does the notebook go when you uninstall Anaconda?
Upvotes: 1
Views: 16124
Reputation: 53
Your code is saved locally on your PC, it is not shared to public nor removed upon uninstalling anconda from your PC.
simply you can locate your code by typing in you jupyter notebook pwd
which stands for print working directroy.
Upvotes: 3
Reputation: 1418
According to the Jupyter handbook - Common Directories and File Locations the data:
Jupyter uses a search path to find installable data files, such as kernelspecs and notebook extensions. When searching for a resource, the code will search the search path starting at the first directory until it finds where the resource is contained.
Each category of file is in a subdirectory of each directory of the search path. For example, kernel specs are in kernels subdirectories.
I think you are also interested in the Runtime files:
Things like connection files, which are only useful for the lifetime of a particular process, have a runtime directory.
On Linux and other free desktop platforms, these runtime files are stored in $XDG_RUNTIME_DIR/jupyter by default. On other platforms, it’s a runtime/ subdirectory of the user’s data directory (second row of the table above).
An environment variable may also be used to set the runtime directory.
Upvotes: 0