Skip to content

System package information, spkg-configure for Jupyter "notebook" package, "rst2ipynb", and dependencies #30124

@mkoeppe

Description

@mkoeppe

(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 of jsonschema)
  • 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:

See also:

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions