Skip to content

Commit

Permalink
Added tab completion to hv.output
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed Nov 14, 2018
1 parent 6a11776 commit 5900103
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions holoviews/util/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,20 +214,24 @@ def _generate_docstring(cls):
holomap = "holomap : The display type for holomaps"
widgets = "widgets : The widget mode for widgets"
fps = "fps : The frames per second used for animations"
frames= ("max_frames : The max number of frames rendered (default %r)"
% cls.defaults['max_frames'])
max_frames= ("max_frames : The max number of frames rendered (default %r)"
% cls.defaults['max_frames'])
size = "size : The percentage size of displayed output"
dpi = "dpi : The rendered dpi of the figure"
chars = ("charwidth : The max character width for displaying helper (default %r)"
charwidth = ("charwidth : The max character width for displaying helper (default %r)"
% cls.defaults['charwidth'])
fname = ("filename : The filename of the saved output, if any (default %r)"
% cls.defaults['filename'])
page = ("info : The information to page about the displayed objects (default %r)"
% cls.defaults['info'])
filename = ("filename : The filename of the saved output, if any (default %r)"
% cls.defaults['filename'])
info = ("info : The information to page about the displayed objects (default %r)"
% cls.defaults['info'])
css = ("css : Optional css style attributes to apply to the figure image tag")

descriptions = [backend, fig, holomap, widgets, fps, frames, size, dpi, chars, fname, page, css]
return '\n'.join(intro + descriptions)
descriptions = [backend, fig, holomap, widgets, fps, max_frames, size,
dpi, charwidth, filename, info, css]
keywords = ['backend', 'fig', 'holomap', 'widgets', 'fps', 'max_frames',
'size', 'dpi', 'charwidth', 'filename', 'info', 'css']
signature = '\noutput(%s)\n' % ', '.join('%s=None' % kw for kw in keywords)
return '\n'.join([signature] + intro + descriptions)


@classmethod
Expand Down

0 comments on commit 5900103

Please sign in to comment.