简体   繁体   English

Jupyter Notebook 在 github 上看起来很奇怪

[英]Jupyter Notebook looks weird on github

I am pushing code from an AWS SageMaker instance to my GitHub. The Jupyter Notebooks are looking very weird on GitHub after I pushed.我正在将代码从 AWS SageMaker 实例推送到我的 GitHub。推送后,Jupyter 笔记本在 GitHub 上看起来很奇怪。 Example below:示例如下:

在此处输入图像描述

There are these huge spaces at the top and bottom.顶部和底部有这些巨大的空间。 For each cell it insert one empty line at the top of each cell and four empty lines at the bottom .对于每个单元格,它在每个单元格的顶部插入一个空行,在底部插入四个空行 This is obviously not the case when I wrote the code in the notebook.我在笔记本上写代码的时候显然不是这样的。 Only after I pushed to GitHub. It's make the notebooks look very bad on GitHub.只有在我推送到 GitHub 之后。它让笔记本在 GitHub 上看起来很糟糕。

Has anyone an idea why that is the case and/or has seen this before?有谁知道为什么会这样和/或以前见过这种情况?

I found out about this github issue about Ipython.我发现了这个关于 Ipython 的 github 问题。

The browser version would causes to create empty spaces.浏览器版本会导致创建空白区域。 https://github.com/ipython/ipython/issues/5612 https://github.com/ipython/ipython/issues/5612

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM