yuuno.ipython.formatter module

class yuuno.ipython.formatter.Formatter(*args, **kwargs)[source]

Bases: yuuno.ipython.feature.Feature

deinitialize()[source]
display(format)[source]
display_formatters
initialize()[source]
type_to_repr = {‘image/png’: ‘_repr_png_’, ‘text/html’: ‘_repr_html_’, ‘text/plain’: ‘_repr_pretty_’}
class yuuno.ipython.formatter.InlineFormat(*args, **kwargs)[source]

Bases: traitlets.traitlets.HasTraits

Represents an inline formatted object.

clip

A trait which allows any value.

environment

A trait whose value must be an instance of a specified class.

The value can also be an instance of a subclass of the specified class.

Subclasses can declare default classes by overriding the klass attribute

first_frame

A trait which allows any value.

ipy_image() → IPython.core.display.Image[source]

Converts a clip to an image.