Thu Jun 10 19:02:26 2021 UTC ()
py-ipywidgets: updated to 7.6.3

7.6
---

To see the full list of pull requests and issues, see the [7.6.0 milestone](https://github.com/jupyter-widgets/ipywidgets/milestone/31?closed=1) on GitHub.

The main change in this release is that installing `ipywidgets` 7.6.0 will now automatically enable ipywidgets support in JupyterLab 3.0窶蚤 user has no extra JupyterLab installation step and no rebuild of JupyterLab, nor do they need Node.js installed. Simply install the python ipywidgets package with pip (`pip install ipywidgets==7.6.0`) or conda/mamba (`conda install -c conda-forge ipywidgets=7.6.0`) and ipywidgets will automatically work in classic Jupyter Notebook and in JupyterLab 3.0.

This is accomplished with the new python package `jupyterlab_widgets` version 1.0, on which `ipywidgets` 7.6.0 now depends (similar to how `ipywidgets` already depends on the `widgetsnbextension` package to configure ipywidgets for the classic Jupyter Notebook). The `jupyterlab_widgets` Python package is a JupyterLab 3.0 prebuilt extension, meaning that it can be installed into JupyterLab 3.0 without rebuilding JupyterLab and without needing Node.js installed.

Updates for Widget Maintainers

Custom widget maintainers will need to make two changes to update for JupyterLab 3:

1. Update the `@jupyter-widgets/base` dependency version to include `^4` to work in JupyterLab 3.0. For example, if you had a dependency on `@jupyter-widgets/base` version `^2 || ^3`, update to `^2 || ^3 || ^4` for your widget to work in classic Jupyter Notebook, JupyterLab 1, JupyterLab 2, and JupyterLab 3.
2. In the `package.json`, add the following `sharedPackages` configuration inside the `jupyterlab` key. See the [JupyterLab extension documentation](https://jupyterlab.readthedocs.io/en/stable/extension/extension_dev.html#requiring-a-service) for more information.

   ```json
     "jupyterlab": {
       "sharedPackages": {
         "@jupyter-widgets/base": {
           "bundled": false,
           "singleton": true
         }
       }
     }
   ```

Separate from these two steps to update for JupyterLab 3, we also recommend that you make your widget's JupyterLab extension a prebuilt extension for JupyterLab 3.0. Users will be able to install your JupyterLab 3.0 prebuilt extension without rebuilding JupyterLab or needing Node.js. See the [JupyterLab 3 extension developer documentation](https://jupyterlab.readthedocs.io/en/stable/extension/extension_dev.html) or the new [widget extension cookiecutter](https://github.com/jupyter-widgets/widget-ts-cookiecutter/tree/jlab3) for more details.


(adam)
diff -r1.3 -r1.4 pkgsrc/www/py-ipywidgets/Makefile
diff -r1.1 -r1.2 pkgsrc/www/py-ipywidgets/distinfo

cvs diff -r1.3 -r1.4 pkgsrc/www/py-ipywidgets/Makefile (expand / switch to unified diff)

--- pkgsrc/www/py-ipywidgets/Makefile 2020/08/09 23:37:32 1.3
+++ pkgsrc/www/py-ipywidgets/Makefile 2021/06/10 19:02:25 1.4
@@ -1,27 +1,27 @@ @@ -1,27 +1,27 @@
1# $NetBSD: Makefile,v 1.3 2020/08/09 23:37:32 joerg Exp $ 1# $NetBSD: Makefile,v 1.4 2021/06/10 19:02:25 adam Exp $
2 2
3DISTNAME= ipywidgets-7.5.1 3DISTNAME= ipywidgets-7.6.3
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5CATEGORIES= www python 5CATEGORIES= www python
6MASTER_SITES= ${MASTER_SITE_PYPI:=i/ipywidgets/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=i/ipywidgets/}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://ipython.org/ 9HOMEPAGE= https://ipython.org/
10COMMENT= IPython HTML widgets for Jupyter 10COMMENT= IPython HTML widgets for Jupyter
11LICENSE= modified-bsd 11LICENSE= modified-bsd
12 12
13DEPENDS+= ${PYPKGPREFIX}-ipykernel>=4.5.1:../../devel/py-ipykernel 13DEPENDS+= ${PYPKGPREFIX}-ipykernel>=4.5.1:../../devel/py-ipykernel
14DEPENDS+= ${PYPKGPREFIX}-nbformat>=4.2.0:../../www/py-nbformat 14DEPENDS+= ${PYPKGPREFIX}-nbformat>=4.2.0:../../www/py-nbformat
15DEPENDS+= ${PYPKGPREFIX}-traitlets>=4.3.1:../../devel/py-traitlets 15DEPENDS+= ${PYPKGPREFIX}-traitlets>=4.3.1:../../devel/py-traitlets
16TEST_DEPENDS+= ${PYPKGPREFIX}-test>=3.6.0:../../devel/py-test 16TEST_DEPENDS+= ${PYPKGPREFIX}-test>=3.6.0:../../devel/py-test
17TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov 17TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
18 18
19USE_LANGUAGES= # none 19USE_LANGUAGES= # none
20 20
21PYTHON_VERSIONS_INCOMPATIBLE= 27 36 # py-ipykernel 21PYTHON_VERSIONS_INCOMPATIBLE= 27 36 # py-ipykernel
22 22
23do-test: 23do-test:
24 cd ${WRKSRC} && py.test-${PYVERSSUFFIX} 24 cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
25 25
26.include "../../lang/python/distutils.mk" 26.include "../../lang/python/distutils.mk"
27.include "../../mk/bsd.pkg.mk" 27.include "../../mk/bsd.pkg.mk"

cvs diff -r1.1 -r1.2 pkgsrc/www/py-ipywidgets/distinfo (expand / switch to unified diff)

--- pkgsrc/www/py-ipywidgets/distinfo 2019/08/21 12:41:24 1.1
+++ pkgsrc/www/py-ipywidgets/distinfo 2021/06/10 19:02:25 1.2
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1$NetBSD: distinfo,v 1.1 2019/08/21 12:41:24 adam Exp $ 1$NetBSD: distinfo,v 1.2 2021/06/10 19:02:25 adam Exp $
2 2
3SHA1 (ipywidgets-7.5.1.tar.gz) = d46a0d2e16cb2a878043576f8b2afd732e8b5491 3SHA1 (ipywidgets-7.6.3.tar.gz) = 29efcd1ba915a02078d3a73da487c3ee4db0730f
4RMD160 (ipywidgets-7.5.1.tar.gz) = fa712bdd7efa65673a6bb424afb8bd0aef8b768d 4RMD160 (ipywidgets-7.6.3.tar.gz) = 56524fc7c87ccf74e81ed1d412562e14357bf229
5SHA512 (ipywidgets-7.5.1.tar.gz) = 856b3e4dad331766eff6e5f1fd31984a4b6ede5c678ffd51a4896f6448dac53ba181ccec2821f10e07e0f1095318427affe19f1420d0337bc3d37ef1e0a9ea0d 5SHA512 (ipywidgets-7.6.3.tar.gz) = 7b3506b43214948d73f4f2c55af81ceacff3d7cccc167dd32c72df6bffb8b1b1f8bdbfac7162d343858f723e7b3f3a1cd78f20c2f93b14a8eb39125ae2aee7b4
6Size (ipywidgets-7.5.1.tar.gz) = 5656334 bytes 6Size (ipywidgets-7.6.3.tar.gz) = 4072376 bytes