有没有一种方法可以禁用保存到Jupyter Notebook的检查点的功能? [英] 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.
checkpoints文件夹的路径是可配置的,因此您可以将其重命名为允许的名称,例如"_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 Notebook的检查点的功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!