jupyter / jupyter/notebook

Autocomplete on directory path causes hang when directory contains large number of files.

Open
#3,216 1 comment 0 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

Hi,

If for example, you are using a command like `pandas.read_csv("../dir/subdir/")`. If you are using tab to autocomplete the directory, and `subdir` in this example has a large number of files in it, if you tab again after `subdir/` it can cause the notebook to hang, presumably due to it trying to generate and display a large list of files.

Contributor guide

Open the contributing guide

Research direction

Reproduce the hang in a Jupyter Notebook by using tab completion after a directory path containing many files, such as the `../dir/subdir/` example. Investigate the notebook's path-autocomplete entry point and determine how large result lists are generated and displayed. Done means completion no longer hangs for large directories, with a regression test if the relevant test location can be identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.