-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to ipywidgets 8 #282
Conversation
@martinRenou I seem to be getting an type issue in the ipywidgets library when compiling ipydatagrid, really odd: /node_modules/@jupyter-widgets/base/lib/widget".WidgetView' has no exported member named 'InitializeParameters'. Did you mean 'IInitializeParameters'? Wondering what's going on. Can you see anything off with my updates? |
@ibdafna You should probably rename it to |
Yeah, I'm not sure why this is happening because it's coming from @jupyter-widgets/base package on the latest beta version. Perhaps the rename is not reflected in the release? EDIT: quite silly of me - I didn't rename this in the extension file. |
@martinRenou I took another stab at fixing the FAIL tests/js/datagrid.test.ts
● Test suite failed to run
tests/js/datagrid.test.ts:37:29 - error TS2769: No overload matches this call.
Overload 1 of 4, '(object: {}, method: never): SpyInstance<never, never>', gave the following error.
Argument of type 'IClassicComm | undefined' is not assignable to parameter of type '{}'.
Type 'undefined' is not assignable to type '{}'.
Overload 2 of 4, '(object: {}, method: never): SpyInstance<never, never>', gave the following error.
Argument of type 'IClassicComm | undefined' is not assignable to parameter of type '{}'.
Type 'undefined' is not assignable to type '{}'.
37 const mock = jest.spyOn(grid.model.comm, 'send');
~~~~~~~~~~~~~~~
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 3.469 s```
https://github.com/bloomberg/ipydatagrid/blob/2540fcf8edc946c00c218537114830dc0ad16bf4/tests/js/testUtils.ts#L155-L218 |
30e27ff
to
0c2e839
Compare
setup.cfg
Outdated
@@ -28,7 +28,7 @@ keywords = Jupyter, Widgets, IPython | |||
packages = find: | |||
install_requires = | |||
bqplot>=0.11.6 | |||
ipywidgets>=7.6.0,<8 | |||
ipywidgets>=7.6.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ipywidgets>=7.6.0 | |
ipywidgets>=7.6.0,<9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
galata update references |
update galata references |
1 similar comment
update galata references |
@martinRenou It seems like the Galata bot has updated the reference images with a images from a failed render attempt - they all show "error displaying widget model". The reference images are captures using ipywidgets 7, and testing locally with ipywidgetx 7.x works fine. Another thing to think about is that there we only capture reference images from one source - either the 7.x or 8.x environment. Should we think about extending the logic so we have separate images for both versions? Is it even reasonable to expect images to render (however slightly) differently between the two major versions? |
update galata references |
Are you able to capture the JS outputs for those tests? Jason shared some nice debugging tricks with Galata here jupyter-widgets/ipyleaflet#968 (comment)
I guess it's reasonable. |
@martinRenou the visual regression tests are genuinely failing on ipywidgets 7.x. We didn't think about the |
6f93cfe
to
b836c99
Compare
f087b0b
to
618140c
Compare
update galata references |
update galata references |
1 similar comment
update galata references |
…sion Signed-off-by: Itay Dafna <i.b.dafna@gmail.com>
Bumps [shell-quote](https://github.com/substack/node-shell-quote) from 1.7.2 to 1.7.3. - [Release notes](https://github.com/substack/node-shell-quote/releases) - [Changelog](https://github.com/substack/node-shell-quote/blob/master/CHANGELOG.md) - [Commits](https://github.com/substack/node-shell-quote/compare/v1.7.2...1.7.3) --- updated-dependencies: - dependency-name: shell-quote dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Itay Dafna <i.b.dafna@gmail.com>
Signed-off-by: Itay Dafna <idafna@seas.upenn.edu> Signed-off-by: Itay Dafna <i.b.dafna@gmail.com>
…sion Signed-off-by: Itay Dafna <i.b.dafna@gmail.com>
Signed-off-by: Itay Dafna <i.b.dafna@gmail.com>
Signed-off-by: Itay Dafna <i.b.dafna@gmail.com>
Signed-off-by: Itay Dafna <i.b.dafna@gmail.com>
Signed-off-by: Itay Dafna <i.b.dafna@gmail.com>
Signed-off-by: Itay Dafna <i.b.dafna@gmail.com>
Signed-off-by: Itay Dafna <i.b.dafna@gmail.com>
Signed-off-by: Itay Dafna <i.b.dafna@gmail.com>
Signed-off-by: Itay Dafna <i.b.dafna@gmail.com>
Signed-off-by: Itay Dafna <i.b.dafna@gmail.com>
Signed-off-by: Itay Dafna <i.b.dafna@gmail.com>
Signed-off-by: Itay Dafna <i.b.dafna@gmail.com>
Signed-off-by: Itay Dafna <i.b.dafna@gmail.com>
Signed-off-by: Itay Dafna <i.b.dafna@gmail.com>
Signed-off-by: Itay Dafna <i.b.dafna@gmail.com>
Signed-off-by: Itay Dafna <i.b.dafna@gmail.com>
Signed-off-by: Itay Dafna <i.b.dafna@gmail.com>
Signed-off-by: Itay Dafna <i.b.dafna@gmail.com>
f9430db
to
3ee8a99
Compare
🎉🎊🥳 |
Signed-off-by: Itay Dafna i.b.dafna@gmail.com