Skip to content

Commit 3d76f8f

Browse files
authored
Merge pull request #183 from PAIR-code/jupyterlab_3
Add support for JupyterLab 3.x and bump version number
2 parents e7af5a5 + de58152 commit 3d76f8f

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -391,15 +391,17 @@ Then, use it as seen at the bottom of the
391391
[What_If_Tool_Notebook_Usage.ipynb notebook](https://colab.research.google.com/github/pair-code/what-if-tool/blob/master/What_If_Tool_Notebook_Usage.ipynb).
392392

393393
### How do I enable it for use in a JupyterLab or Cloud AI Platform notebook?
394-
WIT has been tested in JupyterLab versions 1.x and 2.x.
394+
WIT has been tested in JupyterLab versions 1.x, 2.x, and 3.x.
395395

396-
Install and enable WIT for JupyterLab 2.x by running a cell containing:
396+
Install and enable WIT for JupyterLab 3.x by running a cell containing:
397397
```
398398
!pip install witwidget
399399
!jupyter labextension install wit-widget
400-
!jupyter labextension install @jupyter-widgets/jupyterlab-manager@2
400+
!jupyter labextension install @jupyter-widgets/jupyterlab-manager
401401
```
402-
Note that you need to specify the correct version of jupyterlab-manager for your JupyterLab version as per https://www.npmjs.com/package/@jupyter-widgets/jupyterlab-manager.
402+
Note that you may need to specify the correct version of jupyterlab-manager for
403+
you JupyterLab version as per
404+
https://www.npmjs.com/package/@jupyter-widgets/jupyterlab-manager.
403405

404406
Note that you may need to run `!sudo jupyter labextension ...` commands depending on your notebook setup.
405407

witwidget/notebook/jupyter/js/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "What-If Tool jupyter widget",
44
"author": "Google LLC",
55
"main": "dist/index.js",
6-
"version": "1.8.0",
6+
"version": "1.8.1",
77
"license" : "Apache 2.0",
88
"homepage": "https://github.com/pair-code/what-if-tool",
99
"keywords": [
@@ -26,7 +26,7 @@
2626
"webpack": "^3.5.5"
2727
},
2828
"dependencies": {
29-
"@jupyter-widgets/base": "^1.1 || ^2 || ^3"
29+
"@jupyter-widgets/base": "^1.1 || ^2 || ^3 || ^4"
3030
},
3131
"jupyterlab": {
3232
"extension": "lib/labplugin"

witwidget/pip_package/setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
'absl-py >= 0.4',
3838
'google-api-python-client>=1.7.8',
3939
'ipywidgets>=7.0.0',
40-
'jupyter>=1.0,<2',
4140
'oauth2client>=4.1.3',
4241
'six>=1.12.0',
4342
] + _TF_REQ

witwidget/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414

1515
"""Contains the version string."""
1616

17-
VERSION = '1.8.0'
17+
VERSION = '1.8.1'

0 commit comments

Comments
 (0)