简体   繁体   English

如何从命令行中断 Jupyter 笔记本

[英]How to interupt a Jupyter notebook from the command line

I accidentally told my Jupyter notebook to display 7000 rows of pandas DataFrame all at once (with the max rows variable set to None).我不小心告诉我的 Jupyter 笔记本一次显示 7000 行 pandas DataFrame (最大行变量设置为无)。 As such the web interface is completely unresponsive so I can't interrupt it normally.因此,web 接口完全没有响应,所以我无法正常中断它。 I don't want to have to rerun all of the previous cells in the notebook to get back to my previous position.我不想重新运行笔记本中所有以前的单元格以返回到我以前的 position。

Is there a way to interrupt the kernel from the command line without losing the existing state?有没有办法从命令行中断 kernel 而不会丢失现有的 state?

this can be executed in the command line of the jupyter notebook this may help your question这可以在 jupyter notebook 的命令行中执行,这可能对您的问题有所帮助

jupyter notebook --help 

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从命令行将Jupyter笔记本导出为HTML? - How export a Jupyter notebook to HTML from the command line? 在命令行中执行Jupyter Notebook - Executing Jupyter notebook in command line python:可以从命令行导入包,但不能从 jupyter notebook - python: can improt package from command line but not from jupyter notebook import tensorflow 可以在 jupyter notebook 中使用,但不能在命令行中使用。 使用 conda 安装 tensorflow 和 jupyter notebook - import tensorflow works in jupyter notebook but not from command line. Using conda to install tensorflow and jupyter notebook 从命令行调用 jupyter notebook 时在 conda 中打开它 - when calling jupyter notebook from command line open it in conda 脚本在 Jupyter notebook 中工作,在命令行或 Atom IDE 中失败 - script works in Jupyter notebook, fails from command line or Atom IDE 从 Jupyter 笔记本运行 Windows 命令行和 arguments - Running a Windows command line with arguments from Jupyter notebook 从命令行运行 Jupyter Notebook (.ipynb),就好像它是一个 .py 文件一样 - Run Jupyter Notebook (.ipynb) from command line as if it were a .py file 无法从 Windows 7 中的命令行启动 Jupyter Notebook - Can't launch Jupyter Notebook from the command line in Windows 7 如何从 jupyter notebook 运行 tf.test.TestCase - UnrecognizedFlagError: Unknown command line flag 'f' - how to run a tf.test.TestCase from jupyter notebook - UnrecognizedFlagError: Unknown command line flag 'f'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM