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

查看:283
本文介绍了如何在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,从代码改为 Markdown 。目前在Notebook 4.x 中,此类操作的键盘快捷键为: Esc (对于命令模式),然后 m (用于降价)。

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).

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

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