Skip to content

Commit b170a48

Browse files
ianhijakirkham
andauthored
Updated ipytree warning for jlab3 (#721)
Jupyterlab 3 changed how widgets are installed. Now both the frontend and backend are installed via pip/conda. If a user also then installs the front using the `jupyter labextension install` command then they can end up breaking things by trying to install an old version. Co-authored-by: jakirkham <[email protected]>
1 parent 03dce69 commit b170a48

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

zarr/tests/test_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def test_tree_widget_missing_ipytree():
179179
pattern = (
180180
"Run `pip install zarr[jupyter]` or `conda install ipytree`"
181181
"to get the required ipytree dependency for displaying the tree "
182-
"widget. If using jupyterlab, you also need to run "
182+
"widget. If using jupyterlab<3, you also need to run "
183183
"`jupyter labextension install ipytree`"
184184
)
185185
with pytest.raises(ImportError, match=re.escape(pattern)):

zarr/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ def tree_widget(group, expand, level):
449449
raise ImportError(
450450
"{}: Run `pip install zarr[jupyter]` or `conda install ipytree`"
451451
"to get the required ipytree dependency for displaying the tree "
452-
"widget. If using jupyterlab, you also need to run "
452+
"widget. If using jupyterlab<3, you also need to run "
453453
"`jupyter labextension install ipytree`".format(error)
454454
)
455455

0 commit comments

Comments
 (0)