mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
s/model_name/_model_name
This commit is contained in:
parent
ffe92842fc
commit
865c7330a9
@ -79,7 +79,7 @@ class Widget(LoggingConfigurable):
|
||||
#-------------------------------------------------------------------------
|
||||
# Traits
|
||||
#-------------------------------------------------------------------------
|
||||
model_name = Unicode('WidgetModel', help="""Name of the backbone model
|
||||
_model_name = Unicode('WidgetModel', help="""Name of the backbone model
|
||||
registered in the front-end to create and sync this widget with.""")
|
||||
_view_name = Unicode(help="""Default view registered in the front-end
|
||||
to use to represent the widget.""", sync=True)
|
||||
@ -121,7 +121,7 @@ class Widget(LoggingConfigurable):
|
||||
If a Comm doesn't exist yet, a Comm will be created automagically."""
|
||||
if self._comm is None:
|
||||
# Create a comm.
|
||||
self._comm = Comm(target_name=self.model_name)
|
||||
self._comm = Comm(target_name=self._model_name)
|
||||
self._comm.on_msg(self._handle_msg)
|
||||
self._comm.on_close(self._close)
|
||||
Widget.widgets[self.model_id] = self
|
||||
|
Loading…
Reference in New Issue
Block a user