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

bundles / IPython 9.14.0.dev / IPython / core / formatters / BaseFormatter / lookup

function

IPython.core.formatters:BaseFormatter.lookup

source: /IPython/core/formatters.py :435

Signature

def   lookup ( self obj )

Summary

Look up the formatter for a given instance.

Parameters

obj : object instance

Returns

f : callable

The registered formatting callable for the type.

Raises

: KeyError if the type has not been registered.

Aliases

  • IPython.core.formatters.BaseFormatter.lookup