prompt-toolkit / prompt-toolkit/python-prompt-toolkit
Typeahead Issues in IPython
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 10.6k
- Forks
- 815
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
We'd like to report a few issues with typeahead and IPython. Feel free to point this to the right project itself (prompt-toolkit? IPython?).
The period after the tab causes the tab to be ignored:
time.sleep(8)<ENTER>IPython.cor<TAB>.
The parenthesis after the tab does something weird, autocompleting empty string:
time.sleep(8)<ENTER>np.arang<TAB>(
The ENTER after the tab causes the tab to be ignored:
time.sleep(8)<ENTER>IPython.cor<TAB><ENTER>.
Everything after the xx line is ignored:
time.sleep(8)<ENTER>xx<ENTER>yy<ENTER>.
I can make gifs of the others, but I thought this showed it clearly:

cc @Carreau
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the four typeahead sequences described in the issue, including the period, parenthesis, ENTER, and post-line cases, using prompt-toolkit and IPython. First determine whether the behavior belongs to prompt-toolkit or IPython; done means these inputs are no longer ignored or replaced unexpectedly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100