jupyter / jupyter/notebook

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

Open
#5,487 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

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

Contributor guide

Open the contributing guide

Research direction

The report names Jupyter Notebook 6.0.0 and 6.0.3, Anaconda, pandas, and a 300 MB CSV from a cloud bucket, but no repository files or tests. Start by reproducing the stuck-cell behavior after loading that CSV, compare Jupyter Notebook with JupyterLab, and identify a reproducible cause and fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, pandas, python
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.