在IPython / Jupyter笔记本中,是否有一个清晰,简洁的“规则”摘要,以便将markdown呈现为一种令人愉悦的漂亮,丰富的文本格式?
这是我到目前为止所得到的:
-
当我创建一个新单元格,然后将其切换为'Markdown'它保持在'raw markdown mode'(意思是:我可以看到原始降价 . 显然有's some nice, syntax-based color-coding and font-sizing, but it' s原始降价)
-
如果我保存笔记本,请将其关闭(即关闭浏览器's page) and then re-open the notebook I see the nice, rich-text version of the markdown (i.e., 1421365 is rendered as H1 by the browser, and the browser hides the 1421366 at the start - it',显然不是'raw markdown'
-
如果我点击降价单元格,它仍然在'nice mode'
-
如果按'Enter'键,我进入Jupyter 's edit mode, it replaces the ' nice mode ' view with the ' raw markdown mode'视图,我可以编辑降价 .
我想知道的是: How do I get Jupyter to render that 'raw markdown mode' cell again? (没有关闭并重新打开笔记本)
(或者 - 这是预期的行为吗?当你第一次加载它时,你得到了漂亮的视图,并且你被编辑的任何单元格的'原始降价'视图一直停留,直到你重新加载它?)
1 回答
您只需要执行或运行markdown格式的单元格 .
如果按Ctrl键将执行并将原始文本转换为markdown表单 .
或者您可以按Shift Enter键执行当前单元格,然后移动到下一个单元格 .