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

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 : callable

The registered formatting callable for the type.

Raises

: KeyError if the type has not been registered.

Aliases

  • IPython.core.formatters.BaseFormatter.lookup