How to write text in ipython notebook?

后端 未结 4 610
悲&欢浪女
悲&欢浪女 2021-01-31 07:19

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

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-31 08:04

    Adding to Matt's answer above (as I don't have comment privileges yet), one mouse-free workflow would be:

    Esc then m then Enter so that you gain focus again and can start typing.

    Without the last Enter you would still be in Escape mode and would otherwise have to use your mouse to activate text input in the cell.

    Another way would be to add a new cell, type out your markdown in "Code" mode and then change to markdown once you're done typing everything you need, thus obviating the need to refocus.

    You can then move on to your next cells. :)

提交回复
热议问题