ipython / ipython/ipykernel

Tab completion not working in same cell

Aperta
#457 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
734
Fork
412
Merge medio
1g 5h
PR unite (30g)
8

Descrizione

I create two cells, run both

![2019-11-15-100127](https://user-images.githubusercontent.com/223908/68953026-08592880-078f-11ea-8f0a-f05faa38d485.png)

Then I try tab completion

![2019-11-15-100114](https://user-images.githubusercontent.com/223908/68953167-5837ef80-078f-11ea-90d3-cc0eb461707b.png)

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']
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.