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