Skip to content
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

widgetsnbextension should not depend on notebook #31278

Closed
mkoeppe opened this issue Jan 22, 2021 · 22 comments
Closed

widgetsnbextension should not depend on notebook #31278

mkoeppe opened this issue Jan 22, 2021 · 22 comments

Comments

@mkoeppe
Copy link
Member

mkoeppe commented Jan 22, 2021

This dependency pulls in a full installation of the Jupyter notebook.

notebook>=4.4.1->widgetsnbextension~=3.5.0->ipywidgets==7.5.1

This is an obstacle to avoiding to build a copy of the jupyter notebook (connecting to a system jupyter notebook).

The dependency is being removed in the widgetsnbextension 4.x series (currently alpha). We backport it to the stable release.

Depends on #31328

Upstream: Fixed upstream, but not in a stable release.

CC: @kiwifb @isuruf @antonio-rojas @jcamp0x2a @tobiasdiez @kliem

Component: packages: standard

Author: Matthias Koeppe

Branch: 5141bc3

Reviewer: Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/31278

@mkoeppe mkoeppe added this to the sage-9.3 milestone Jan 22, 2021
@mkoeppe
Copy link
Member Author

mkoeppe commented Feb 2, 2021

comment:2

In a first step we could patch out this dependency - then the wheel that we build at least won't pull the notebook into a user venv.

@mkoeppe
Copy link
Member Author

mkoeppe commented Feb 2, 2021

Dependencies: #31328

@mkoeppe
Copy link
Member Author

mkoeppe commented Feb 2, 2021

Upstream: Not yet reported upstream; Will do shortly.

@mkoeppe

This comment has been minimized.

@mkoeppe
Copy link
Member Author

mkoeppe commented Feb 2, 2021

Changed upstream from Not yet reported upstream; Will do shortly. to Workaround found; Bug reported upstream.

@mkoeppe
Copy link
Member Author

mkoeppe commented Feb 2, 2021

Author: Matthias Koeppe

@mkoeppe
Copy link
Member Author

mkoeppe commented Feb 3, 2021

@mkoeppe
Copy link
Member Author

mkoeppe commented Feb 4, 2021

Commit: 1062a3b

@mkoeppe
Copy link
Member Author

mkoeppe commented Feb 4, 2021

comment:10

Upstream indicates in response to jupyter-widgets/ipywidgets#3080 that they instead plan to remove the dependency of widgetsnbextension on notebook in 8.0.


New commits:

a8035aabuild/pkgs/ipywidgets: Upgrade to 7.6.3
fab1cb0build/pkgs/ipywidgets: Patch out dependency on widgetsnbextension, jupyterlab_widgets
1062a3bbuild/pkgs/ipywidgets/dependencies: Remove widgetsnbextension

@mkoeppe
Copy link
Member Author

mkoeppe commented Feb 4, 2021

@mkoeppe
Copy link
Member Author

mkoeppe commented Feb 4, 2021

comment:13

We can patch our widgetsnbextension with a backport of this.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Feb 5, 2021

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

5141bc3build/pkgs/widgetsnbextension: Patch out dependency on notebook (backport from widgetsnbextension-4)

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Feb 5, 2021

Changed commit from 1062a3b to 5141bc3

@mkoeppe
Copy link
Member Author

mkoeppe commented Feb 5, 2021

Changed upstream from Workaround found; Bug reported upstream. to Fixed upstream, but not in a stable release.

@mkoeppe

This comment has been minimized.

@mkoeppe mkoeppe changed the title ipywidgets should not depend on widgetsnbextension widgetsnbextension should not depend on notebook Feb 5, 2021
@dimpase
Copy link
Member

dimpase commented Mar 7, 2021

comment:17

this installs OK. More testing...

@dimpase
Copy link
Member

dimpase commented Mar 8, 2021

comment:18

lgtm

@dimpase
Copy link
Member

dimpase commented Mar 8, 2021

Reviewer: Dima Pasechnik

@mkoeppe
Copy link
Member Author

mkoeppe commented Mar 8, 2021

comment:19

Thanks!

@vbraun
Copy link
Member

vbraun commented Mar 14, 2021

@mkoeppe
Copy link
Member Author

mkoeppe commented Mar 19, 2021

comment:21

Follow up: #31523

@mkoeppe
Copy link
Member Author

mkoeppe commented Mar 19, 2021

Changed commit from 5141bc3 to none

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants