bundles / IPython 9.17.0 / IPython / core / formatters / BaseFormatter / lookup
function
IPython.core.formatters:BaseFormatter.lookup
Signature
def lookup(self, obj)Summary
Look up the formatter for a given instance.
Parameters
obj: object instance
Returns
f: callableThe registered formatting callable for the type.
Raises
: KeyError if the type has not been registered.
Aliases
IPython.core.formatters.BaseFormatter.lookup