Is there a keyboard shortkey to browse the history in a Jupyter notebook

前端 未结 1 706
一向
一向 2021-01-17 22:35

Is there an easy way to browse through command history and reuse old commands in a Jupyter notebook? Some equivalent to either the arrow up/down use in the iPython console o

相关标签:
1条回答
  • 2021-01-17 23:09

    I was looking for the same. But a year later, and after about 10 min of scouring the best I found (link) is this magic command: %recall last or %recall <integer>, which after execution copies a command from history into a new cell. Probably not quite what you had been looking - a tad too kludgy compared to arrow up/down. But a good option for cells with lots of text.

    0 讨论(0)
提交回复
热议问题