Jupyter notebook not rendering properly on GitHub, with no line breaks in code

54 views Asked by At

GitHub can directly render Jupyter notebooks properly. For example, this page renders very nicely.

However, this page, or this page, do not. The code lines are all jumbled together without the proper line breaks.

The second one, for example, has a cell rendered thus:

enter image description here

Looking at their code (respectively here and here), they seem correct, and the code lines are properly finished with \n.

What explains the incorrect rendering?

0

There are 0 answers