如何在JupyterLab中修复Markdown文件的文件加载错误

时间:2020-02-25 19:04:25

标签: jupyter-notebook jupyter-lab

当我尝试在JupyterLab中将* .md文件作为笔记本打开时,出现以下错误: File file_name.md is in format/version=markdown/1.2 (current version is 1.1). It would not be safe to override the source of file_name.md with that file. Please remove one or the other file.

我从* .md和错误消息中了解到,给定的降价使用1.2版本的格式(format_version: '1.2')。但是,我不知道该怎么做才能更新它。我使用诗歌虚拟环境。我试图重新安装环境以获取最新的markdown / jupytext版本,但没有成功。

poetry show给了我markdown=="3.2.1"jupytext==1.3.0。如何更新使用的格式版本以能够打开新的降价文件?

1 个答案:

答案 0 :(得分:0)

我收到了同样的错误信息。

pip3 install jupytext --upgrade

更新 jupytext 版本。然后,我就可以打开文件了。