bundles / IPython latest / IPython / core / formatters / BaseFormatter / lookup
function
IPython.core.formatters:BaseFormatter.lookup
source: /IPython/core/formatters.py:434
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