有没有办法禁用保存到 Jupyter Notebooks 的检查点? [英] Is there a way to disable saving to checkpoints for Jupyter Notebooks?
问题描述
我在这样的环境中工作,不允许使用 .ipynb_checkpoints
之类的文件夹名称写入磁盘空间.
I am working in an environment where writing to the disk space with a folder name like .ipynb_checkpoints
is disallowed.
不幸的是,这是 Jupyter Notebook 的 Save and Checkpoint
的默认路径.有没有办法将 Jupyter Notebook 配置为不使用检查点功能或允许使用不同的文件夹名称?
Unfortunately, this is Jupyter Notebook's default path for Save and Checkpoint
.
Is there a way to configure Jupyter Notebook to not use the checkpoint feature or allow a different folder name?
推荐答案
不完全是您问题的答案,但可能足够接近了.
Not exactly an answer to your question, but perhaps close enough.
检查点文件夹的路径是可配置的,因此您可以将其重命名为允许的名称,例如_ipynb_checkpoints",或者您可以将其移动到一个完全不同的文件夹.
The path of the checkpoints folder is configurable so you could rename it to something allowed such as "_ipynb_checkpoints", or you could move it to a completely different folder.
您只需添加
c.FileCheckpoints.checkpoint_dir = '_ipynb_checkpoints'
到jupyter_notebook_config.py
这篇关于有没有办法禁用保存到 Jupyter Notebooks 的检查点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!