python - 我如何调试垂死的 jupyter notebook ipython 内核?

标签 python debugging jupyter-notebook ipython

当运行我的 jupyter notebooks 时,ipython 内核(Python 3.8、Anaconda)不断死机并重新启动。

我想找出导致它行为不端的原因。可悲的是,除了内核已死并重新启动外,我找不到任何调试信息。

我如何找到可能有助于事后分析 分析的更详细的信息?有没有错误日志之类的?

最佳答案

当您使用此命令从控制台启动 Jupyter 时(可能来自 Anaconda 终端):

jupyter notebook --debug

然后它将打印扩展日志消息。您还可以使用

将这些消息通过管道传输到单独的 logfile.txt
jupyter notebook --debug > logfile.txt 2>&1

关于python - 我如何调试垂死的 jupyter notebook ipython 内核?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66256467/

相关文章:

.net - 您可以使用Reflector获取应用程序的源代码,然后使用该源代码进行调试吗?

java - Neo4j:节点和关系对象中的属性

python - 如何与 plotly 图表共享 jupyter notebook?

Python 日志文件已更新,但尽管设置了级别,但没有任何内容打印到标准输出

python - Tesseract OCR 产生空结果

python - 如何在 Python 中测试 Web API 限制

debugging - 什么是调试器以及它如何帮助我诊断问题?

python - 链接延迟回调

ipython - 是否有 ipython 服务器预关闭 Hook ?

python - 从笔记本启动 IPython 集群有延迟