|
58 | 58 | observe,
|
59 | 59 | )
|
60 | 60 |
|
61 |
| -from ._version import __MODEL_VERSION__ |
| 61 | +from ._version import js_semver |
62 | 62 |
|
63 | 63 | cursors_str = {
|
64 | 64 | cursors.HAND: 'pointer',
|
@@ -93,11 +93,11 @@ def connection_info():
|
93 | 93 | class Toolbar(DOMWidget, NavigationToolbar2WebAgg):
|
94 | 94 |
|
95 | 95 | _model_module = Unicode('jupyter-matplotlib').tag(sync=True)
|
96 |
| - _model_module_version = Unicode(__MODEL_VERSION__).tag(sync=True) |
| 96 | + _model_module_version = Unicode(js_semver).tag(sync=True) |
97 | 97 | _model_name = Unicode('ToolbarModel').tag(sync=True)
|
98 | 98 |
|
99 | 99 | _view_module = Unicode('jupyter-matplotlib').tag(sync=True)
|
100 |
| - _view_module_version = Unicode(__MODEL_VERSION__).tag(sync=True) |
| 100 | + _view_module_version = Unicode(js_semver).tag(sync=True) |
101 | 101 | _view_name = Unicode('ToolbarView').tag(sync=True)
|
102 | 102 |
|
103 | 103 | toolitems = List().tag(sync=True)
|
@@ -180,11 +180,11 @@ def _on_orientation_collapsed_changed(self, change):
|
180 | 180 | class Canvas(DOMWidget, FigureCanvasWebAggCore):
|
181 | 181 |
|
182 | 182 | _model_module = Unicode('jupyter-matplotlib').tag(sync=True)
|
183 |
| - _model_module_version = Unicode(__MODEL_VERSION__).tag(sync=True) |
| 183 | + _model_module_version = Unicode(js_semver).tag(sync=True) |
184 | 184 | _model_name = Unicode('MPLCanvasModel').tag(sync=True)
|
185 | 185 |
|
186 | 186 | _view_module = Unicode('jupyter-matplotlib').tag(sync=True)
|
187 |
| - _view_module_version = Unicode(__MODEL_VERSION__).tag(sync=True) |
| 187 | + _view_module_version = Unicode(js_semver).tag(sync=True) |
188 | 188 | _view_name = Unicode('MPLCanvasView').tag(sync=True)
|
189 | 189 |
|
190 | 190 | toolbar = Instance(Toolbar, allow_none=True).tag(sync=True, **widget_serialization)
|
|
0 commit comments