jupyter / jupyter/notebook

TAB completion does not work in Jupyter Notebook while another cell is running

Open
#3,763 17 comments 4 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

Normally, TAB completion works fine in jupyter notebook.

However, if there is another cell running (e.g. a long running sub-process) TAB doesn't do anything until that and any other queued for execution cells won't finish their course. It does function in other notebooks, but not in other cells of the same notebook that's "busy".

To reproduce, run this cell:

import time
time.sleep(30)

then start a new cell, and try to autocomplete (`while`):

whil

No completion happens.

This behavior slows down the development process, and in a way somewhat defeats the idea of separate cells. As one can type code, but can't do it efficiently.

Thank you.

jupyter-1.0.0, python-3.6.6 here.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in Jupyter Notebook by running `import time; time.sleep(30)` in one cell and trying TAB completion for `whil` in another cell. Trace how completion requests are handled while cells are running or queued, then verify that completion works before, during, and after the long-running cell without delaying queued execution.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.