##// END OF EJS Templates
Correct documentation
Jason Grout -
Show More
@@ -455,18 +455,14 b' class Widget(LoggingConfigurable):'
455 self._display_callbacks(self, **kwargs)
455 self._display_callbacks(self, **kwargs)
456
456
457 def _trait_to_json(self, x):
457 def _trait_to_json(self, x):
458 """Convert a trait value to json
458 """Convert a trait value to json.
459
459
460 Traverse lists/tuples and dicts and serialize their values as well.
460 Metadata (the second return value) is not sent
461 Replace any widgets with their model_id
462 """
461 """
463 return x, None
462 return x, None
464
463
465 def _trait_from_json(self, x):
464 def _trait_from_json(self, x):
466 """Convert json values to objects
465 """Convert json values to objects."""
467
468 Replace any strings representing valid model id values to Widget references.
469 """
470 return x
466 return x
471
467
472 def _ipython_display_(self, **kwargs):
468 def _ipython_display_(self, **kwargs):
General Comments 0
You need to be logged in to leave comments. Login now