Skip to content

Commit 47a7f88

Browse files
committed
upgrade idom to 0.38.0
1 parent 15c11ca commit 47a7f88

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

idom_jupyter/widget.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
from functools import wraps
55
from threading import Thread
66
from queue import Queue as SyncQueue
7-
from idom.core.proto import ComponentType
7+
from idom.core.types import ComponentType
88

99
import ipywidgets as widgets
1010
from IPython.display import display as ipython_display
1111
from traitlets import Unicode
1212
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
1414

1515

1616
_IMPORT_SOURCE_BASE_URL = ""
@@ -57,9 +57,9 @@ class LayoutWidget(widgets.DOMWidget):
5757
_model_module = Unicode("idom-client-jupyter").tag(sync=True)
5858

5959
# 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)
6161
# 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)
6363

6464
_import_source_base_url = Unicode().tag(sync=True)
6565

@@ -90,7 +90,7 @@ def _idom_on_msg(self, message, buffers):
9090
self._idom_views.remove(message["viewID"])
9191

9292
async def _idom_layout_render_loop(self):
93-
with self._idom_layout:
93+
async with self._idom_layout:
9494
while True:
9595
diff = await render_json_patch(self._idom_layout)
9696
self._idom_model = diff.apply_to(self._idom_model)

js/lib/widget.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ var IdomModel = widgets.DOMWidgetModel.extend({
88
_view_name: "IdomView",
99
_model_module: "idom-client-jupyter",
1010
_view_module: "idom-client-jupyter",
11-
_model_module_version: "0.7.0",
12-
_view_module_version: "0.7.0",
11+
_model_module_version: "0.9.0",
12+
_view_module_version: "0.9.0",
1313
}),
1414
});
1515

js/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "idom-client-jupyter",
3-
"version": "0.8.0",
3+
"version": "0.9.0",
44
"description": "A client for IDOM implemented using Jupyter widgets",
55
"author": "Ryan Morshead",
66
"main": "lib/index.js",
@@ -38,7 +38,7 @@
3838
},
3939
"dependencies": {
4040
"@jupyter-widgets/base": "^1.1 || ^2 || ^3 || ^4",
41-
"idom-client-react": "^0.36.3",
41+
"idom-client-react": "^0.38.0",
4242
"lodash": "^4.17.4",
4343
"react": "^17.0.1",
4444
"react-dom": "^17.0.1"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
description="A client for IDOM implemented using Jupyter widgets",
6868
long_description=LONG_DESCRIPTION,
6969
include_package_data=True,
70-
install_requires=["ipywidgets>=7.6.0", "idom>=0.36.0,<0.37", "appdirs", "requests"],
70+
install_requires=["ipywidgets>=7.6.0", "idom>=0.38,<0.39", "appdirs", "requests"],
7171
packages=find_packages(),
7272
zip_safe=False,
7373
cmdclass=cmdclass,

0 commit comments

Comments
 (0)