You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I recently switched over from PC to Mac and have installed jupyter notebook as my primary python coding environment. It's working great so far, except that the files no longer autosave as expected. There are no error messages in the terminal I open Jupyter notebook from, and so far the only hint to the issue is that when I try to run %autosave 120 (for example) in one of the cells, I receive the error message
Javascript Error: IPython is not defined Autosaving every 120 seconds
No matter the time I pass as an argument to %autosave, it will never autosave at that frequency. I've tried searching this problem online, which included possible fixes as deleting ~/.ipynb_checkpoints, running jupyter notebook as root, and explicitly adding ~.ipynb_checkpoints to the jupyter notebook config file as the place to store checkpoints, but nothing has worked. I can cmd+S to save the files just fine, but it would be nice to have the autosave feature working in case I forget when I close a notebook.
Reproduce
Go to terminal and type jupyter notebook
Click on or create any .ipynb file
Observe top of window
Notice that it never autosaves/creates a checkpoint on its own, and no error message appears
[I 2024-11-06 16:34:58.379 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2024-11-06 16:34:58.380 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2024-11-06 16:34:58.381 ServerApp] jupyterlab | extension was successfully linked.
[I 2024-11-06 16:34:58.383 ServerApp] notebook | extension was successfully linked.
[I 2024-11-06 16:34:58.502 ServerApp] notebook_shim | extension was successfully linked.
[I 2024-11-06 16:34:58.518 ServerApp] notebook_shim | extension was successfully loaded.
[I 2024-11-06 16:34:58.519 ServerApp] jupyter_lsp | extension was successfully loaded.
[I 2024-11-06 16:34:58.520 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2024-11-06 16:34:58.520 LabApp] JupyterLab extension loaded from /Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/jupyterlab
[I 2024-11-06 16:34:58.520 LabApp] JupyterLab application directory is /Library/Frameworks/Python.framework/Versions/3.13/share/jupyter/lab
[I 2024-11-06 16:34:58.521 LabApp] Extension Manager is 'pypi'.
[I 2024-11-06 16:34:58.535 ServerApp] jupyterlab | extension was successfully loaded.
[I 2024-11-06 16:34:58.536 ServerApp] notebook | extension was successfully loaded.
[I 2024-11-06 16:34:58.537 ServerApp] Serving notebooks from local directory: /Users/kkehrer
[I 2024-11-06 16:34:58.537 ServerApp] Jupyter Server 2.14.2 is running at:
[I 2024-11-06 16:34:58.537 ServerApp] http://localhost:8888/tree
[I 2024-11-06 16:34:58.537 ServerApp] http://127.0.0.1:8888/tree
[I 2024-11-06 16:34:58.537 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[I 2024-11-06 16:34:58.546 ServerApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyright, python-language-server, python-lsp-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server
Browser Output
Menu entry for command 'filemenu:close-and-cleanup' is duplicated. [5649.bundle.js:1:14277](http://localhost:8888/static/notebook/5649.bundle.js)
Menu entry for command 'application:close' is duplicated. [5649.bundle.js:1:14277](http://localhost:8888/static/notebook/5649.bundle.js)
can't convert undefined to object [8471.bundle.js:1:13976](http://localhost:8888/static/notebook/8471.bundle.js)
Settings failed to load for (@jupyterlab/application-extension:context-menu)
Array [ {…} ]
[5099.bundle.js:1:16794](http://localhost:8888/static/notebook/5099.bundle.js)
Settings failed to load for (@jupyterlab/application-extension:context-menu)
Array [ {…} ]
[3768.bundle.js:1:4113](http://localhost:8888/static/notebook/3768.bundle.js)
Settings failed to load for (@jupyterlab/metadataform-extension:metadataforms)
Array [ {…} ]
[3768.bundle.js:1:4113](http://localhost:8888/static/notebook/3768.bundle.js)
Settings failed to load for (@jupyterlab/cell-toolbar-extension:plugin)
Array [ {…} ]
[3768.bundle.js:1:4113](http://localhost:8888/static/notebook/3768.bundle.js)
The text was updated successfully, but these errors were encountered:
Thank you for opening this issue @kylekehrer! The Autosave interval option is available in the settings editor so you could try setting it there (search for autosave in the Settings Editor to find the option). You can find more information on the error you are receiving in the following issue: jupyterlab/jupyterlab#5660
Description
Hello, I recently switched over from PC to Mac and have installed jupyter notebook as my primary python coding environment. It's working great so far, except that the files no longer autosave as expected. There are no error messages in the terminal I open Jupyter notebook from, and so far the only hint to the issue is that when I try to run
%autosave 120
(for example) in one of the cells, I receive the error messageJavascript Error: IPython is not defined
Autosaving every 120 seconds
No matter the time I pass as an argument to
%autosave
, it will never autosave at that frequency. I've tried searching this problem online, which included possible fixes as deleting~/.ipynb_checkpoints
, running jupyter notebook as root, and explicitly adding~.ipynb_checkpoints
to the jupyter notebook config file as the place to store checkpoints, but nothing has worked. I can cmd+S to save the files just fine, but it would be nice to have the autosave feature working in case I forget when I close a notebook.Reproduce
jupyter notebook
.ipynb
fileExpected behavior
Context
Troubleshoot Output
Command Line Output
Browser Output
The text was updated successfully, but these errors were encountered: