如何在jupyter/ipython笔记本中编写文本? [英] How to write text in jupyter / ipython notebook?

查看:146
本文介绍了如何在jupyter/ipython笔记本中编写文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此处是一个示例在IPython笔记本中,除了输入和输出单元格外,我们还有一个纯文本.如何在IPython笔记本中执行相同的操作?目前,我只有内部 In Out 单元格.

Here is an example of IPython notebook in which besides the input and output cells we have a plain text. How can I do the same in my IPython notebook? At the moment I have inly In and Out cells.

推荐答案

在菜单栏中将单元格类型更改为Markdown,从 Code 更改为 Markdown .当前在Notebook 4.x 中,用于执行此操作的键盘快捷键是: Esc (用于命令模式),然后是 m (用于markdown).

Change the cell type to Markdown in the menu bar, from Code to Markdown. Currently in Notebook 4.x, the keyboard shortcut for such an action is: Esc (for command mode), then m (for markdown).

这篇关于如何在jupyter/ipython笔记本中编写文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆