holoviews.ipython.magics module#

class holoviews.ipython.magics.CompositorMagic(**kwargs: Any)[source]#

Bases: Magics

Magic allowing easy definition of compositor operations. Consult %compositor? for more information.

class holoviews.ipython.magics.OptsCompleter[source]#

Bases: object

Implements the TAB-completion for the %%opts magic.

classmethod dotted_completion(line, sorted_keys, compositor_defs)[source]#

Supply the appropriate key in Store.options and supply suggestions for further completion.

classmethod option_completer(k, v)[source]#

Tab completion hook for the %%opts cell magic.

classmethod setup_completer()[source]#

Get the dictionary of valid completions

class holoviews.ipython.magics.OptsMagic(**kwargs: Any)[source]#

Bases: Magics

Magic for easy customising of normalization, plot and style options. Consult %%opts? for more information.

opts(line='', cell=None)[source]#

The opts line/cell magic with tab-completion.

%%opts [ [path] [normalization] [plotting options] [style options]]+

pathA dotted type.group.label specification

(e.g. Image.Grayscale.Photo)

normalizationList of normalization options delimited by braces.

One of | -axiswise | -framewise | +axiswise | +framewise | E.g. { +axiswise +framewise }

plotting options: List of plotting option keywords delimited by

square brackets. E.g. [show_title=False]

style options: List of style option keywords delimited by

parentheses. E.g. (lw=10 marker=’+’)

Note that commas between keywords are optional (not recommended) and that keywords must end in ‘=’ without a separating space.

More information may be found in the class docstring of util.parser.OptsSpec.

classmethod process_element(obj)[source]#

To be called by the display hook which supplies the element to be displayed. Any customisation of the object can then occur before final display. If there is any error, a HTML message may be returned. If None is returned, display will proceed as normal.

class holoviews.ipython.magics.OutputMagic(**kwargs: Any)[source]#

Bases: Magics

classmethod pprint()[source]#

Pretty print the current element options

class holoviews.ipython.magics.TimerMagic(**kwargs: Any)[source]#

Bases: Magics

A line magic for measuring the execution time of multiple cells.

After you start/reset the timer with ‘%timer start’ you may view elapsed time with any subsequent calls to %timer.

timer(line='')[source]#

Timer magic to print initial date/time information and subsequent elapsed time intervals.

To start the timer, run:

%timer start

This will print the start date and time.

Subsequent calls to %timer will print the elapsed time relative to the time when %timer start was called. Subsequent calls to %timer start may also be used to reset the timer.