holoviews.ipython package#

Submodules#

Module contents#

class holoviews.ipython.IPTestCase(*args, **kwargs)[source]#

Bases: ComparisonTestCase

This class extends ComparisonTestCase to handle IPython specific objects and support the execution of cells and magic.

cell(line)[source]#

Run an IPython cell

cell_magic(*args, **kwargs)[source]#

Run an IPython cell magic

line_magic(*args, **kwargs)[source]#

Run an IPython line magic

setUp()[source]#

Hook method for setting up the test fixture before exercising it.

class holoviews.ipython.notebook_extension(*, allow_jedi_completion, case_sensitive_completion, css, display_formats, enable_mathjax, inline, logo, width, name)[source]#

Bases: extension

Notebook specific extension to hv.extension that offers options for controlling the notebook environment.

Parameter Definitions


css = String(default='', label='Css')

Optional CSS rule set to apply to the notebook.

logo = Boolean(default=True, label='Logo')

Toggles display of HoloViews logo

inline = Boolean(default=False, label='Inline')

Whether to inline JS and CSS resources. If disabled, resources are loaded from CDN if one is available.

width = Number(allow_None=True, bounds=(0, 100), inclusive_bounds=(True, True), label='Width')

Width of the notebook as a percentage of the browser screen window width.

display_formats = List(bounds=(0, None), default=['html'], label='Display formats')

A list of formats that are rendered to the notebook where multiple formats may be selected at once (although only one format will be displayed). Although the ‘html’ format is supported across backends, other formats supported by the current backend (e.g. ‘png’ and ‘svg’ using the matplotlib backend) may be used. This may be useful to export figures to other formats such as PDF with nbconvert.

allow_jedi_completion = Boolean(default=True, label='Allow jedi completion')

Whether to allow jedi tab-completion to be enabled in IPython.

case_sensitive_completion = Boolean(default=False, label='Case sensitive completion')

Whether to monkey patch IPython to use the correct tab-completion behavior.

enable_mathjax = Boolean(default=False, label='Enable mathjax')

Whether to load bokeh-mathjax bundle in the notebook.

classmethod completions_sorting_key(word)[source]#

Fixed version of IPyton.completer.completions_sorting_key

Allow to display Holoviews’ logo and the plotting extensions’ logo.

holoviews.ipython.show_traceback()[source]#

Display the full traceback after an abbreviated traceback has occurred.