即使执行完成,Jupyter笔记本电脑单元仍保持忙碌(*) [英] Jupyter notebook cell stays busy (*) even after the execution is complete

查看:145
本文介绍了即使执行完成,Jupyter笔记本电脑单元仍保持忙碌(*)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Jupyter/IPython笔记本开始对我的Ubuntu(14.04)计算机有些奇怪.

The Jupyter/IPython notebook started acting a little strange for my Ubuntu (14.04) computer.

通常,jupyter笔记本中的一个单元在执行时会变得繁忙,并在其旁边带有一个星号(*),一旦执行繁忙,就会显示执行序列号,表示已完成的任务已成功完成在里面.

Usually, a cell in jupyter notebook becomes busy with an asterisk (*) symbol next to it when it is executed and as soon as the execution is busy, the execution sequence number is displayed to denote successful completion of whatever task which was in it.

现在,每当我执行一个单元格时,即使执行完成后,它仍然会在它旁边带有一个星号.然后,提供给执行的任何其他单元也会得到一个星号,但是没有进度.仅当给出中断命令时,执行序列号才会显示,并且我可以继续运行其他单元(以同样的奇怪方式).

Now, whenever I execute a cell, it remains busy with an asterisk next to it even after the execution is complete. Then, any other cell which is given for execution also gets an asterisk but with no progress. Only when the interrupt command is given the execution sequence number shows up and I can continue to run other cells (in the same odd way).

是什么原因导致这种奇怪的行为以及如何解决?在过去的两年使用中,这从未发生过-在Ubuntu和Mac中都没有.

What is causing this odd behaviour and how to solve it? It didn't happen to me before over the last two years of use -- neither in Ubuntu or Mac.

推荐答案

原因似乎是变量资源管理器笔记本扩展.禁用此功能后,Jupyter笔记本电脑可以正常工作.

The cause seems to be the variable explorer notebook extension. The Jupyter notebook works fine when this is disabled.

我最近安装了jupyter_contrib_nbextensions,并开始使用变量浏览器.但是,这似乎是导致问题的原因.我已使用主目录树中的nbextensions选项卡将其关闭.现在,单元执行恢复正常.

I've recently installed jupyter_contrib_nbextensions and started to use the variable explorer in it. However, it seems like this is what is causing the problem. I've turned it off using the nbextensions tab in the home tree. Now, the cell executions are back to normal.

这篇关于即使执行完成,Jupyter笔记本电脑单元仍保持忙碌(*)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆