Skip to content

Commit 77a6dd9

Browse files
committed
update IDOM + fix jupyter server extension integration
1 parent 2d75942 commit 77a6dd9

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

idom_jupyter/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Module version
2-
version_info = (0, 4, 0, "final", 0)
2+
version_info = (0, 5, 0, "final", 0)
33

44
# Module version stage suffix map
55
_specifier_ = {"alpha": "a", "beta": "b", "candidate": "rc", "final": ""}

idom_jupyter/ipython_extension.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from functools import partial
22

3-
from idom import Component as _Component
3+
from idom.core.component import AbstractComponent
44
from IPython import get_ipython
55
from IPython.display import display
66

@@ -17,7 +17,7 @@ def load_ipython_extension(ipython):
1717
_POST_RUN_CELL_HOOK = partial(_post_run_cell, ipython)
1818
ipython.events.register("post_run_cell", _POST_RUN_CELL_HOOK)
1919
ipython.display_formatter.ipython_display_formatter.for_type(
20-
_Component, lambda element: ({}, {})
20+
AbstractComponent, lambda element: ({}, {})
2121
)
2222
_EXTENSION_LOADED = True
2323

@@ -30,7 +30,7 @@ def unload_ipython_extension(ipython):
3030

3131

3232
def _post_run_cell(ipython, result):
33-
if isinstance(result.result, _Component):
33+
if isinstance(result.result, AbstractComponent):
3434
display(LayoutWidget(result.result))
3535

3636

jupyter-config/jupyter_notebook_config.d/idom-client-jupyter.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"NotebookApp": {
3-
"nbserver_extensions": {
2+
"ServerApp": {
3+
"jpserver_extensions": {
44
"idom_jupyter": true
55
}
66
}

notebooks/introduction.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
"name": "python",
123123
"nbconvert_exporter": "python",
124124
"pygments_lexer": "ipython3",
125-
"version": "3.7.7-final"
125+
"version": "3.9.0"
126126
}
127127
},
128128
"nbformat": 4,

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
description="A client for IDOM implemented using Jupyter widgets",
7373
long_description=LONG_DESCRIPTION,
7474
include_package_data=True,
75-
install_requires=["ipywidgets>=7.6.0", "idom>=0.21.0"],
75+
install_requires=["ipywidgets>=7.6.0", "idom>=0.22.2"],
7676
packages=find_packages(),
7777
zip_safe=False,
7878
cmdclass=cmdclass,

0 commit comments

Comments
 (0)