首页 > 解决方案 > github上的jupyter notebook渲染段落标记

问题描述

我有一些在 github 上呈现怪异的 jupyter 笔记本,您可以在此处或在下面的屏幕截图中 看到截屏

我认为这与行尾 LF/CRLF 有关,因为当我为提交添加它们时,会收到以下警告:

warning: LF will be replaced by CRLF in evaluate.ipynb.
The file will have its original line endings in your working directory

但是将 core.autocrlf 设置为 false withgit config --global core.autocrlf false并没有帮助。

我只希望笔记本在 github 上正确显示,因为在我的笔记本电脑上我没有任何问题。我不认为 Github 方面或浏览器有问题,因为我可以看到其他 jupyter notebook 正确呈现。请你帮助我好吗?谢谢!

标签: gitgithubjupyter-notebookgoogle-colaboratoryjupyter-lab

解决方案


推荐阅读