MCPcopy Index your code
hub / github.com/ipython/ipython / discard

Function discard

IPython/terminal/shortcuts/auto_suggest.py:487–490  ·  view source on GitHub ↗

Discard autosuggestion

(event: KeyPressEvent)

Source from the content-addressed store, hash-verified

485
486
487def discard(event: KeyPressEvent):
488 """Discard autosuggestion"""
489 buffer = event.current_buffer
490 buffer.suggestion = None
491
492
493def accept_word(event: KeyPressEvent):

Callers 1

test_discardFunction · 0.90

Calls

no outgoing calls

Tested by 1

test_discardFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…