holoviews.core.pprint module#

HoloViews can be used to build highly-nested data-structures containing large amounts of raw data. As a result, it is difficult to generate a readable representation that is both informative yet concise.

As a result, HoloViews does not attempt to build representations that can be evaluated with eval; such representations would typically be far too large to be practical. Instead, all HoloViews objects can be represented as tree structures, showing how to access and index into your data.

class holoviews.core.pprint.InfoPrinter[source]#

Bases: object

Class for printing other information related to an object that is of use to the user.

classmethod get_parameter_info(obj, ansi=False, show_values=True, pattern=None, max_col_len=40)[source]#

Get parameter information from the supplied class or object.

classmethod heading(heading_text, char='=', level=0, ansi=False)[source]#

Turn the supplied heading text into a suitable heading with optional underline and color.

classmethod info(obj, ansi=False, backend='matplotlib', visualization=True, pattern=None, elements=None)[source]#

Show information about an object in the given category. ANSI color codes may be enabled or disabled.

store[source]#

alias of Store

class holoviews.core.pprint.PrettyPrinter(*, show_defaults, show_options, name)[source]#

Bases: Parameterized

The PrettyPrinter used to print all HoloView objects via the pprint method.

Parameter Definitions


show_defaults = Boolean(default=False, label='Show defaults')

Whether to show default options as part of the repr. If show_options=False this has no effect.

show_options = Boolean(default=False, label='Show options')

Whether to show options as part of the repr.

component_type(node)[source]#

Return the type.group.label dotted information

element_info(node, siblings, level, value_dims)[source]#

Return the information summary for an Element. This consists of the dotted name followed by an value dimension names.

node_info(node, attrpath, attrpaths, siblings, level, value_dims)[source]#

Given a node, return relevant information.

recurse(node, attrpath=None, attrpaths=None, siblings=None, level=0, value_dims=True)[source]#

Recursive function that builds up an ASCII tree given an AttrTree node.