notebook icon indicating copy to clipboard operation
notebook copied to clipboard

I need to run each cell twice for it to display its result

Open efrenmo opened this issue 6 years ago • 1 comments

Hi,

When I run a cell it gets stuck on [*]. It just stays like that without yielding any error message. I need to interrupt the kernel and run it again for it to display its result. Once I run it again it quickly display its results. I need to do that with every cell, (run, stop, and run it again).

A clue into the problem might be that this happens starting the cell after I read a big csv file (300mb) from a cloud bucket using pandas. It then happens in every cell since. Even in cells with very simple code lines such as (df.columns)

It is very strange since I've been working with this same notebook executing exact same code on IBM Watson jupyter notebook for the past couple of days with no issue whatsoever. I'm running this notebook now from my personal pc with anaconda. I've tried with Jupyter notebook 6.0.0 and 6.0.3.

I can add that I dont have this problem with jupyter lab. Although, I would prefer to use jupyter notebook for its nbextensions functionality.

What additional information can I provide that could help solve this problem.

Thank you in advance, Efren

efrenmo avatar May 27 '20 23:05 efrenmo

We had another occurrence of this in #6038 and it too exhibited the behavior that this was not an issue using Lab, yet included pandas in its problem definition.

Do any frontend devs have any ideas why this behavior might be exhibited with notebook but not lab? Can the front end get into any kind of deadlocked state that invoking interrupt alleviates? I suspect the interrupt is not actually interrupting the kernel's execution but rather something in the front end. Perhaps there's some intelli-sense type logic where pandas exacerbate this situation?

kevin-bates avatar Apr 14 '21 20:04 kevin-bates