Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Limit number of completions returned #10743
If there are a very large number of completions (e.g. tens of thousands of files), the notebook frontend can have trouble handling them - see jupyter/help#198 . I don't see any practical need for so many completions in the UI - if there are that many, you're likely to type some more letters and try completing again.
This limits the returned completions to 500. It's not configurable, but there's a clear constant so someone could patch it locally if there was an unexpected need for a larger number of completions.
referenced this pull request
Aug 15, 2017
I didn't investigate that, but the issue was about 70k files appearing as completions. If it takes 15 characters for each completion, that's sending over 1MB of data. Even if the main slowdown is from display when it's local, if you're accessing a remote server over a low-bandwidth connection, that's a lot of data to be transferring when you hit tab.