##// END OF EJS Templates
Fixed doc string comments, removed extra space
Jonathan Frederic -
Show More
@@ -282,6 +282,8 b' class Widget(LoggingConfigurable):'
282 def on_displayed(self, callback, remove=False):
282 def on_displayed(self, callback, remove=False):
283 """Register a callback to be called when the widget has been displayed
283 """Register a callback to be called when the widget has been displayed
284
284
285 Parameters
286 ----------
285 callback: method handler
287 callback: method handler
286 Can have a signature of:
288 Can have a signature of:
287 - callback()
289 - callback()
@@ -298,6 +300,8 b' class Widget(LoggingConfigurable):'
298 def handle_displayed(self, view_name):
300 def handle_displayed(self, view_name):
299 """Called when a view has been displayed for this widget instance
301 """Called when a view has been displayed for this widget instance
300
302
303 Parameters
304 ----------
301 view_name: unicode
305 view_name: unicode
302 Name of the view that was displayed."""
306 Name of the view that was displayed."""
303 for handler in self._display_callbacks:
307 for handler in self._display_callbacks:
@@ -321,7 +325,6 b' class Widget(LoggingConfigurable):'
321 'accept 0-2 arguments, not %d.' % nargs)
325 'accept 0-2 arguments, not %d.' % nargs)
322
326
323
327
324
325 # Support methods
328 # Support methods
326 def _repr_widget_(self, view_name=None):
329 def _repr_widget_(self, view_name=None):
327 """Function that is called when `IPython.display.display` is called on
330 """Function that is called when `IPython.display.display` is called on
General Comments 0
You need to be logged in to leave comments. Login now