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

Function reformat_and_execute

IPython/terminal/shortcuts/__init__.py:383–389  ·  view source on GitHub ↗

Reformat code and execute it

(event)

Source from the content-addressed store, hash-verified

381
382
383def reformat_and_execute(event):
384 """Reformat code and execute it"""
385 shell = get_ipython()
386 reformat_text_before_cursor(
387 event.current_buffer, event.current_buffer.document, shell
388 )
389 event.current_buffer.validate_and_handle()
390
391
392def reformat_text_before_cursor(buffer, document, shell):

Callers

nothing calls this directly

Calls 2

get_ipythonFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…