Skip to content

Commit f9581cb

Browse files
Bump ipytree from 0.2.1 to 0.2.2 (#1112)
Bumps [ipytree](https://github.com/martinRenou/ipytree) from 0.2.1 to 0.2.2. - [Release notes](https://github.com/martinRenou/ipytree/releases) - [Changelog](https://github.com/martinRenou/ipytree/blob/master/RELEASE.md) - [Commits](https://github.com/martinRenou/ipytree/commits) --- updated-dependencies: - dependency-name: ipytree dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent be0bf3e commit f9581cb

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

requirements_dev_optional.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# bsddb3==6.2.6; sys_platform != 'win32'
33
lmdb==1.3.0; sys_platform != 'win32'
44
# optional library requirements for Jupyter
5-
ipytree==0.2.1
5+
ipytree==0.2.2
6+
ipywidgets==8.0.2
67
# optional library requirements for services
78
# don't let pyup change pinning for azure-storage-blob, need to pin to older
89
# version to get compatibility with azure storage emulator on appveyor (FIXME)

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
extras_require={
3131
'jupyter': [
3232
'notebook',
33-
'ipytree',
33+
'ipytree>=0.2.2',
34+
'ipywidgets>=8.0.0',
3435
],
3536
},
3637
python_requires='>=3.8, <4',

zarr/tests/test_hierarchy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1760,7 +1760,7 @@ def _check_tree(g, expect_bytes, expect_text):
17601760
assert expect_repr == repr(g.tree())
17611761
if ipytree:
17621762
# noinspection PyProtectedMember
1763-
widget = g.tree()._ipython_display_()
1763+
widget = g.tree()._repr_mimebundle_()
17641764
isinstance(widget, ipytree.Tree)
17651765

17661766

zarr/util.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -533,10 +533,9 @@ def __unicode__(self):
533533
def __repr__(self):
534534
return self.__unicode__()
535535

536-
def _ipython_display_(self):
536+
def _repr_mimebundle_(self, **kwargs):
537537
tree = tree_widget(self.group, expand=self.expand, level=self.level)
538-
tree._ipython_display_()
539-
return tree
538+
return tree._repr_mimebundle_(**kwargs)
540539

541540

542541
def check_array_shape(param, array, shape):

0 commit comments

Comments
 (0)