-
-
Notifications
You must be signed in to change notification settings - Fork 649
Description
(From dimpase https://groups.google.com/d/msg/sage-devel/mWTD0_iBwKc/4eKjmINXAQAJ)
We currently cannot use Python packages from the system (see #29023) - and spkg-configure.m4
is not the right tool for changing that.
However, the situation is different for the Jupyter notebook
package (and its dependencies):
We do not really need to install it in our venv if a suitable version is available in the system. Rather, we should install our kernel into the system/user's jupyter installation (see https://groups.google.com/forum/#!topic/sage-devel/wH7_bru_Q0s/discussion).
Likewise, rst2ipynb
is a Python package but we only provide it to make a script available, not a Python module. So again, if the system provides a suitable version, we do not need to install it in our venv.
notebook
's exclusive dependencies (see #26919, https://github.com/jupyter/notebook/blob/master/setup.py):
terminado
,prometheus_client
,send2trash
argon2-cffi
(new dependency)
Shared between notebook
and optional package rst2ipynb
(via nbconvert
):
nbconvert
,nbformat
,jsonschema
,mistune
,entrypoints
,bleach
,pandocfilters
,testpath
,defusedxml
pyrsistent
(new dependency ofjsonschema
)pandoc
,pandoc_attributes
(?)
The following dependencies are shared between notebook
and sagelib
/ipython
/ipykernel
. So we need to install them even if they are present in the system python:
pyzmq
,dateutil
,tornado
,jupyter-client
,jupyter-core
,jinja2
,pygments
,ipython_genutils
Packages depending on notebook
:
pari_jupyter
(no system packages: https://repology.org/projects/?search=pari_jupyter&maintainer=&category=&inrepo=¬inrepo=&repos=&families=&repos_newest=&families_newest=)r_jupyter
(script package; https://repology.org/project/r:irkernel/versions)widgetsnbextension
See also:
- Sage's jupyter doesn't "talk" to a systemwide IRkernel R package #30120 Sage's jupyter doesn't "talk" to a systemwide IRkernel R package
- Upgrade Jupyter notebook to latest (6.1.1) and its dependencies to latest #26919 Upgrade Jupyter notebook to latest (6.1.1) and its dependencies to latest
- Add optional packages jupyterlab, jupyterlab_widgets to support interacts in JupyterLab #30246 Support interacts in JupyterLab
Depends on #28197
Depends on #30299
CC: @dimpase @nbruin @slel @paulmasson @kiwifb @EmmanuelCharpentier @jhpalmieri @thierry-FreeBSD @sheerluck @nthiery
Component: build: configure
Keywords: sd111
Branch/Commit: u/mkoeppe/system_information__spkg_configure_for_jupyter__notebook__package_and_dependencies @ b8164c1
Issue created by migration from https://trac.sagemath.org/ticket/30124