From a67f2ec472af4d77993050b8fa7df86e1121512f Mon Sep 17 00:00:00 2001 From: Jonathan Frederic Date: Wed, 6 Nov 2013 09:48:22 -0800 Subject: [PATCH] Fixed doc string comments, removed extra space --- IPython/html/widgets/widget.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/IPython/html/widgets/widget.py b/IPython/html/widgets/widget.py index a9618cccc..ac6b7eccf 100644 --- a/IPython/html/widgets/widget.py +++ b/IPython/html/widgets/widget.py @@ -282,6 +282,8 @@ class Widget(LoggingConfigurable): def on_displayed(self, callback, remove=False): """Register a callback to be called when the widget has been displayed + Parameters + ---------- callback: method handler Can have a signature of: - callback() @@ -298,6 +300,8 @@ class Widget(LoggingConfigurable): def handle_displayed(self, view_name): """Called when a view has been displayed for this widget instance + Parameters + ---------- view_name: unicode Name of the view that was displayed.""" for handler in self._display_callbacks: @@ -321,7 +325,6 @@ class Widget(LoggingConfigurable): 'accept 0-2 arguments, not %d.' % nargs) - # Support methods def _repr_widget_(self, view_name=None): """Function that is called when `IPython.display.display` is called on