有没有办法在Spark Shell中重新运行粘贴的代码块?
我定期将代码块复制到Spark-shell中,并使用
:paste
运行块 CTRL-D
有时会出错,因为首先需要另一行代码,例如导入。一旦添加了其他任何要求,我想重新运行整个粘贴的块。是否有这样做的快捷方式,而不是重新复制它,重新贴上?诸如反向搜索之类的东西,但要用于整个块。
I regularly copy blocks of code into spark-shell and run the block using
:paste
ctrl-d
Sometimes it errors because another line of code is required first e.g. an import. Once I have added any other requirements in, I would like to rerun the whole pasted block. Is there a shortcut for doing this, rather than re-copying it, re-pasting? Something like reverse search but for whole blocks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试将所有块放在文件中并运行
You can try to put together all the blocks in a file and run