|
4 | 4 | from functools import wraps |
5 | 5 | from threading import Thread |
6 | 6 | from queue import Queue as SyncQueue |
7 | | -from idom.core.proto import ComponentType |
| 7 | +from idom.core.types import ComponentType |
8 | 8 |
|
9 | 9 | import ipywidgets as widgets |
10 | 10 | from IPython.display import display as ipython_display |
11 | 11 | from traitlets import Unicode |
12 | 12 | from idom.core.layout import Layout, LayoutEvent, LayoutUpdate |
13 | | -from idom.core.dispatcher import VdomJsonPatch, render_json_patch |
| 13 | +from idom.core.serve import VdomJsonPatch, render_json_patch |
14 | 14 |
|
15 | 15 |
|
16 | 16 | _IMPORT_SOURCE_BASE_URL = "" |
@@ -57,9 +57,9 @@ class LayoutWidget(widgets.DOMWidget): |
57 | 57 | _model_module = Unicode("idom-client-jupyter").tag(sync=True) |
58 | 58 |
|
59 | 59 | # Version of the front-end module containing widget view |
60 | | - _view_module_version = Unicode("^0.8.0").tag(sync=True) |
| 60 | + _view_module_version = Unicode("^0.9.0").tag(sync=True) |
61 | 61 | # Version of the front-end module containing widget model |
62 | | - _model_module_version = Unicode("^0.8.0").tag(sync=True) |
| 62 | + _model_module_version = Unicode("^0.9.0").tag(sync=True) |
63 | 63 |
|
64 | 64 | _import_source_base_url = Unicode().tag(sync=True) |
65 | 65 |
|
@@ -90,7 +90,7 @@ def _idom_on_msg(self, message, buffers): |
90 | 90 | self._idom_views.remove(message["viewID"]) |
91 | 91 |
|
92 | 92 | async def _idom_layout_render_loop(self): |
93 | | - with self._idom_layout: |
| 93 | + async with self._idom_layout: |
94 | 94 | while True: |
95 | 95 | diff = await render_json_patch(self._idom_layout) |
96 | 96 | self._idom_model = diff.apply_to(self._idom_model) |
|
0 commit comments