Tab completion not working in same cell
- 主要語言
- Python
- 星號
- 734
- 分支
- 412
- 平均合併
- 1 天 5 小時
- 30 天內合併 PR
- 8
描述
I create two cells, run both

Then I try tab completion

If I press tab at the end of the second cell, nothing happens. If I press tab at the end of the third cells, it works.
Python repro:
```python
from ipykernel.tests.utils import new_kernel, wait_for_idle, execute, TIMEOUT
cells = [
'import datetime',
't = datetime.date.today()',
't = datetime.date.today()\nt.',
't.'
]
with new_kernel() as kc:
execute(cells[0], kc=kc)
wait_for_idle(kc)
execute(cells[1], kc=kc)
wait_for_idle(kc)
kc.complete(cells[2])
matches_1 = kc.get_shell_msg(block=True, timeout=TIMEOUT)['content']['matches']
kc.complete(cells[3])
matches_2 = kc.get_shell_msg(block=True, timeout=TIMEOUT)['content']['matches']
```
貢獻指南
評估
這個 Issue 還沒有評估資料。