Package: python3-nbconvert
Version: 7.16.4-1
Severity: normal
X-Debbugs-Cc: twa...@gmail.com

Dear Maintainer,

The python3-nbconvert package includes an old version of 
`/usr/share/jupyter/nbconvert/template/lab/static/style.css`, which leads to 
incorrect styles being applied. In particular, the wrong font is applied to 
code cells.
The package includes version 3.x of the css file, but the version appropriate 
for the rest of the packge is 4.x.

The old version includes a line
   .CodeMirror {
the new version should instead have
   .cm-editor {

This css file is not included in the source package, but rather, it is 
downloaded by the build script (`hatch_build.py`).
The url includes a version number (`jupyterlab_css_version = "4.0.2"`). But if 
the file already exists, it does not re-download them in that case. If 
previously an older version of the nbconvert was built, then the file is not 
update.

The solution is likely to do a clean build, that is, remove all files not in 
the upstream source archive before running the build script.

I also submited an upstream issue:
https://github.com/jupyter/nbconvert/issues/2180



-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.10.6-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_IE:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-nbconvert depends on:
ii  python3 [python3-supported-min]  3.12.5-1
ii  python3-bleach                   6.1.0-2
ii  python3-bs4                      4.12.3-3
ii  python3-defusedxml               0.7.1-2
ii  python3-jinja2                   3.1.3-1
ii  python3-jupyter-core             5.7.2-4
ii  python3-jupyterlab-pygments      0.2.2-3
ii  python3-markupsafe               2.1.5-1+b1
ii  python3-mistune                  3.0.2-1
ii  python3-nbclient                 0.8.0-1
ii  python3-nbformat                 5.9.1-1
ii  python3-packaging                24.1-1
ii  python3-pandocfilters            1.5.1-1
ii  python3-pygments                 2.18.0+dfsg-1
ii  python3-tinycss2                 1.3.0-1
ii  python3-traitlets                5.14.3+really5.14.3-1

Versions of packages python3-nbconvert recommends:
ii  pandoc                  3.1.3+ds-3+b1
ii  python3-jupyter-client  8.6.2-3

Versions of packages python3-nbconvert suggests:
pn  python-nbconvert-doc       <none>
ii  texlive-fonts-recommended  2024.20240829-2
ii  texlive-plain-generic      2024.20240829-1
ii  texlive-xetex              2024.20240829-2

-- no debconf information

Reply via email to