You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can also apply the following diff if you only want to support ipywidgets==8 from now on:
39
+
40
+
```diff
41
+
- "@jupyter-widgets/base": "^2 || ^3 || ^4",
42
+
+ "@jupyter-widgets/base": "^5",
43
+
```
44
+
45
+
### Updating the client-side code
46
+
47
+
You should only need to change your client-side JavaScript code if you have mentions to the
48
+
archived Phosphor library.
49
+
50
+
The maintenance for the Phosphor library (now named Lumino) is done under the JupyterLab governance: https://github.com/jupyterlab/lumino
51
+
52
+
If you used to import classes like ``JupyterPhosphorPanelWidget`` and ``JupyterPhosphorWidget`` from the ``@jupyter-widgets/base`` library, you will need to update them:
53
+
54
+
```diff
55
+
- import { JupyterPhosphorPanelWidget, JupyterPhosphorWidget } from '@jupyter-widgets/base';
56
+
+ import { JupyterLuminoPanelWidget, JupyterLuminoWidget } from '@jupyter-widgets/base';
57
+
```
58
+
59
+
The ``DOMWidgetView.pWidget`` property has been renamed ``DOMWidgetView.luminoWidget`` (though an alias for ``pWidget`` has been made for conveniance):
60
+
61
+
```diff
62
+
- this.pWidget
63
+
+ this.luminoWidget
64
+
```
65
+
66
+
The ``DOMWidgetView.processPhosphorMessage`` method has been renamed ``DOMWidgetView.processLuminoMessage``:
67
+
68
+
```diff
69
+
- processPhosphorMessage(msg: Message): void {
70
+
- super.processPhosphorMessage(msg);
71
+
+ processLuminoMessage(msg: Message): void {
72
+
+ super.processLuminoMessage(msg);
73
+
```
74
+
7
75
Migrating from 6.0 to 7.0
8
76
-------------------------
9
77
@@ -14,7 +82,7 @@ For example migrations, see these PRs:
14
82
15
83
To avoid tying your development cycle to ipywidgets, we recommend starting
16
84
the migration on a branch and keeping that branch open until ipywidgets 7.0
17
-
is released.
85
+
is released.
18
86
19
87
We also recommend testing the migration in a completely new notebook, rather
20
88
than one that contains widgets that you instantiated with ipywidgets 6.0.
@@ -30,9 +98,9 @@ cycle through the tags until you see the latest 7.0.0 tag.
30
98
31
99
Next, we should update the JavaScript dependencies. The most important change
32
100
for widget developers is that the JavaScript package for jupyter-widgets has
33
-
been split between `@jupyter-widgets/base` and `@jupyter-widgets/controls`:
101
+
been split between `@jupyter-widgets/base` and `@jupyter-widgets/controls`:
34
102
-`@jupyter-widgets/base` contains the base widget classes and the layout
35
-
classes
103
+
classes
36
104
-`@jupyter-widgets/controls` contains the widget classes for the
37
105
user-facing widgets.
38
106
@@ -105,7 +173,7 @@ that matches a release on NPM. The most common pattern is to request a
105
173
version compatible with the version currently in your `package.json` by using,
106
174
`~{{ version number }}` for `_model_module_version` and `_view_module_version`. See the [cookiecutter
0 commit comments