mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
Add version trait to Widget base,
From widget Trello: version numbers for widget models; when reloaded, will give the widget a chance to do something intelligent or fail (by default) if the version number doesn't match.
This commit is contained in:
parent
98cef15a7c
commit
1172876191
@ -107,6 +107,7 @@ class Widget(LoggingConfigurable):
|
||||
msg_throttle = Int(3, sync=True, help="""Maximum number of msgs the
|
||||
front-end can send before receiving an idle msg from the back-end.""")
|
||||
|
||||
version = Int(0, sync=True, help="""Widget's version""")
|
||||
keys = List()
|
||||
def _keys_default(self):
|
||||
return [name for name in self.traits(sync=True)]
|
||||
|
Loading…
Reference in New Issue
Block a user