Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jupyter notebook 在版本控制中清除Jupyter笔记本的特定元数据属性_Jupyter Notebook_Nbconvert - Fatal编程技术网

Jupyter notebook 在版本控制中清除Jupyter笔记本的特定元数据属性

Jupyter notebook 在版本控制中清除Jupyter笔记本的特定元数据属性,jupyter-notebook,nbconvert,Jupyter Notebook,Nbconvert,使用Git保存jupyter笔记本时,我想删除: 输出(以中文回答) 元数据中的执行时间(以下代码位于.ipynb中) 我可以使用--ClearMetadataPreprocessor.enabled=True删除所有元数据,但我只想删除ExecuteTime元数据 如何在.git/config中更新当前命令 [filter "strip-notebook-output"] clean = "jupyter nbconvert --ClearOutp

使用Git保存jupyter笔记本时,我想删除:

  • 输出(以中文回答)

  • 元数据中的执行时间(以下代码位于
    .ipynb
    中)

我可以使用
--ClearMetadataPreprocessor.enabled=True
删除所有元数据,但我只想删除
ExecuteTime
元数据

如何在
.git/config
中更新当前命令

[filter "strip-notebook-output"]
    clean = "jupyter nbconvert --ClearOutputPreprocessor.enabled=True --ClearMetadataPreprocessor.enabled=True --to=notebook --stdin --stdout --log-level=ERROR"

如何将参数传递给?

不幸的是,ClearMetadataPreprocessor除了删除所有元数据之外没有更多的选项。请参见此功能的拉动请求
[filter "strip-notebook-output"]
    clean = "jupyter nbconvert --ClearOutputPreprocessor.enabled=True --ClearMetadataPreprocessor.enabled=True --to=notebook --stdin --stdout --log-level=ERROR"