##// END OF EJS Templates
Fix some formatting in widget docstrings
Thomas Kluyver -
Show More
@@ -196,8 +196,10 b' class Widget(LoggingConfigurable):'
196 Parameters
196 Parameters
197 ----------
197 ----------
198 callback: callable
198 callback: callable
199 callback will be passed two arguments when a message arrives:
199 callback will be passed two arguments when a message arrives::
200
200 callback(widget, content)
201 callback(widget, content)
202
201 remove: bool
203 remove: bool
202 True if the callback should be unregistered."""
204 True if the callback should be unregistered."""
203 self._msg_callbacks.register_callback(callback, remove=remove)
205 self._msg_callbacks.register_callback(callback, remove=remove)
@@ -208,8 +210,10 b' class Widget(LoggingConfigurable):'
208 Parameters
210 Parameters
209 ----------
211 ----------
210 callback: method handler
212 callback: method handler
211 Must have a signature of:
213 Must have a signature of::
214
212 callback(widget, **kwargs)
215 callback(widget, **kwargs)
216
213 kwargs from display are passed through without modification.
217 kwargs from display are passed through without modification.
214 remove: bool
218 remove: bool
215 True if the callback should be unregistered."""
219 True if the callback should be unregistered."""
General Comments 0
You need to be logged in to leave comments. Login now