This is a development version (9.18.0.dev) and may be unstable.Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython 9.18.0.dev / IPython / terminal / interactiveshell / black_reformat_handler

function

IPython.terminal.interactiveshell:black_reformat_handler

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

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