From b840f75e6f8333d00f1d2cdff73cd274fa9efe1b 2014-01-16 10:56:58 From: Jonathan Frederic Date: 2014-01-16 10:56:58 Subject: [PATCH] Fixed doc string comments, removed extra space --- diff --git a/IPython/html/widgets/widget.py b/IPython/html/widgets/widget.py index a9618cc..ac6b7ec 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