[Pkg-javascript-devel] packaging and debuging of the javascript part of ipywidgets
picca
picca at debian.org
Tue Dec 24 13:07:49 GMT 2024
Hello Xavier
> packaging things in Debian means use available dependencies. The "jlpm
> build" command launch yarn to download dependencies during build. Yes
> it works but this is not valid for a package build.
I am well aware of this ;) I would check that the upstream could produce
a working ipywidget in the notebook and jupyterlab.
the current Debian ipywidgets is not working out of the box. This is why
I try to understand all this.
> See the build of jupyterlab to see how we succeed to build it using
> only Debian packages.
I saw in [1] the export YARNCOMMAND
[1]
https://tracker.debian.org/media/packages/j/jupyterlab/rules-4.0.11ds1cs11.25.27-3
In my case I have only a bunch of packages available
picca at page:~/debian/python-team/packages/ipywidgets/packages$ ls
base base-manager controls html-manager output schema
I will try to reproduce your nodejs/ organisation and see if It works.
thanks :))
In order to work the ipywidgets need to be registered for the notebook
and jupyterlab.
This si the object of the python3-widgetsnbextension and
python3-jupyterlab-widgets packages
which were removed during the ipywidget 8 packaging process.
It seems to me also that notebook and jupyterlab expecte to find the
javascript files at a specific location.
/usr/share/jupyter/nbextensions
/usr/share/jupyter/nbextensions/jupyter-js-widgets
/usr/share/jupyter/nbextensions/jupyter-js-widgets/extension.js
/usr/share/jupyter/nbextensions/jupyter-js-widgets/extension.js.LICENSE.txt
/usr/share/jupyter/nbextensions/jupyter-js-widgets/extension.js.map
and
/usr/share/jupyter/labextensions/@jupyter-widgets
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/build_log.json
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/install.json
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/package.json
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/schemas
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/schemas/@jupyter-widgets
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/schemas/@jupyter-widgets/jupyterlab-manager
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/schemas/@jupyter-widgets/jupyterlab-manager/package.json.orig
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/schemas/@jupyter-widgets/jupyterlab-manager/plugin.json
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/static
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/static/lib_index_js.3298aa1600205bdc2bb5.js
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/static/lib_index_js.3298aa1600205bdc2bb5.js.map
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/static/packages_base-manager_lib_index_js.13941b475e5b5a1ab133.js
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/static/packages_base-manager_lib_index_js.13941b475e5b5a1ab133.js.map
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/static/packages_base_lib_index_js-webpack_sharing_consume_default_jquery_jquery.c5da6f337c01661541e6.js
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/static/packages_base_lib_index_js-webpack_sharing_consume_default_jquery_jquery.c5da6f337c01661541e6.js.map
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/static/packages_controls_lib_index_js.45349ba8094344a108cd.js
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/static/packages_controls_lib_index_js.45349ba8094344a108cd.js.map
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/static/packages_controls_lib_version_js.105c0edf5e497d01e132.js
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/static/packages_controls_lib_version_js.105c0edf5e497d01e132.js.map
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/static/packages_output_lib_index_js-_27270.264e38b91e335735e03f.js
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/static/packages_output_lib_index_js-_27270.264e38b91e335735e03f.js.map
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/static/packages_output_lib_index_js-_27271.bdf33a794a1745d076ba.js
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/static/packages_output_lib_index_js-_27271.bdf33a794a1745d076ba.js.map
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/static/remoteEntry.015451b453bb532b23f2.js
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/static/remoteEntry.015451b453bb532b23f2.js.map
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/static/style.js
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/static/vendors-node_modules_backbone_backbone_js-node_modules_lodash_isEqual_js.8bc275495e75ec657457.js
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/static/vendors-node_modules_backbone_backbone_js-node_modules_lodash_isEqual_js.8bc275495e75ec657457.js.map
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/static/vendors-node_modules_base64-js_index_js-node_modules_sanitize-html_index_js.d173fdc21505e6b4a36d.js
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/static/vendors-node_modules_base64-js_index_js-node_modules_sanitize-html_index_js.d173fdc21505e6b4a36d.js.map
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/static/vendors-node_modules_d3-color_src_color_js-node_modules_d3-format_src_defaultLocale_js-node_m-09b215.2643c43f22ad111f4f82.js
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/static/vendors-node_modules_d3-color_src_color_js-node_modules_d3-format_src_defaultLocale_js-node_m-09b215.2643c43f22ad111f4f82.js.map
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/static/vendors-node_modules_jquery_dist_jquery_js.3afdf979a9caffdf15a7.js
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/static/vendors-node_modules_jquery_dist_jquery_js.3afdf979a9caffdf15a7.js.map
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/static/vendors-node_modules_semver_index_js.3fa0bd3b8f97fc43069a.js
/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/static/vendors-node_modules_semver_index_js.3fa0bd3b8f97fc43069a.js.map
I need to investigate a bit more in order to check if the widgets
javascript produce by ipydatagrid are fonctionnale.
Fred
More information about the Pkg-javascript-devel
mailing list