You are viewing an older version (9.14.0).Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython 9.14.0 / IPython / terminal / interactiveshell / black_reformat_handler

function

IPython.terminal.interactiveshell:black_reformat_handler

source: /dev/ipython/IPython/terminal/interactiveshell.py:140

Signature

def black_reformat_handler(text_before_cursor)

Summary

We do not need to protect against error, this is taken care at a higher level where any reformat error is ignored. Indeed we may call reformatting on incomplete code.

Aliases

  • IPython.terminal.interactiveshell.black_reformat_handler