Github Jupyter文件未正确渲染

Github Jupyter文件未正确渲染,github,jupyter,Github,Jupyter,我的最终项目必须在Jupyter文件中完成,然后在GitHub上共享。我的问题是,只有我才能看到可读格式的Jupyter文件,因为只要我尝试在GitHub或Watson Studio上共享它,它就会变成不可读的文件。即使我在Watson Studio上创建笔记本,在我保存它之前,它看起来还是不错的,因为保存后,我无法以“好的格式”再次查看它-它只是再次看起来不可读 我试图找出我自己的问题,我注意到如果我用代码删除标记单元格: <div class="alert alert-success

我的最终项目必须在Jupyter文件中完成,然后在GitHub上共享。我的问题是,只有我才能看到可读格式的Jupyter文件,因为只要我尝试在GitHub或Watson Studio上共享它,它就会变成不可读的文件。即使我在Watson Studio上创建笔记本,在我保存它之前,它看起来还是不错的,因为保存后,我无法以“好的格式”再次查看它-它只是再次看起来不可读

我试图找出我自己的问题,我注意到如果我用代码删除标记单元格:

<div class="alert alert-success alertsucess" style="margin-top: 5px">
<h1> Part 1 </h1>
</div>.

第一部分
.
它实际上呈现得很好,至少现在是这样——如果在我的电脑上我能完美地看到它,为什么这会是一个问题呢

我是这样看的:

这是Watson Studio或GitHub的外观:

在您的
多伦多社区-第1部分.ipynb
更改以下代码行:

 "source": "<div class=\"alert alert-success alertsucess\" style=\"margin-top: 5px\">\n<h1> Part 1 </h1>\n</div>."
“源”:“\n第1部分\n”

“源”:“\n第1部分\n”
也从这一行

"source": "<div class=\"alert alert-danger alertdanger\" style=\"margin-top: 5px\">\n<h1> Explanation notes </h1>\nPlease note that the instructions given to us are outdated, as after droping \"Not assigned\" Boroughs, the rest is automatically done. There was no need for the code to make changes to neighborhood as those changes are automatically there in wiki website itself. However, to make sure that I get full points I included the pointless codes nonetheless. \n</div>."
“source”:“\n解释说明\n请注意,提供给我们的说明已经过时,因为删除\”后未分配\“自治区,其余的自动完成。代码不需要对邻居进行更改,因为这些更改会自动出现在wiki网站本身中。然而,为了确保我得到满分,我还是加入了毫无意义的代码\n、 "

“source”:“\n解释说明\n请注意,给我们的说明已经过时,因为在删除“Not assigned”行政区后,其余的将自动完成。代码不需要对邻居进行更改,因为这些更改会自动出现在wiki网站本身中。然而,为了确保我得到满分,我还是加入了毫无意义的代码\n“
简单地说,去掉结束div标记后的点(.),这样格式就可以了

或者,您可以简单地按照以下步骤在Github上进行编辑:

1:

转到Github存储库单击多伦多附近的
第1部分.ipynb

2:

单击“编辑此文件”

3:


只需删除点(.)并提交更改。

你真是个天才!谢谢!@Elliebessek不客气,如果有帮助,请接受它作为答案。我如何接受它作为帮助?我点击了箭头,但因为我是新来的,它告诉我我没有足够的声誉
"source": "<div class=\"alert alert-danger alertdanger\" style=\"margin-top: 5px\">\n<h1> Explanation notes </h1>\nPlease note that the instructions given to us are outdated, as after droping \"Not assigned\" Boroughs, the rest is automatically done. There was no need for the code to make changes to neighborhood as those changes are automatically there in wiki website itself. However, to make sure that I get full points I included the pointless codes nonetheless. \n</div>."
"source": "<div class=\"alert alert-danger alertdanger\" style=\"margin-top: 5px\">\n<h1> Explanation notes </h1>\nPlease note that the instructions given to us are outdated, as after droping \"Not assigned\" Boroughs, the rest is automatically done. There was no need for the code to make changes to neighborhood as those changes are automatically there in wiki website itself. However, to make sure that I get full points I included the pointless codes nonetheless. \n</div>"