• Pre-Depends usage

    From Guerkan Myczko@21:1/5 to All on Mon Nov 14 13:10:01 2022
    Hi

    I would like to use Pre-Depends in the cadabra2 packge so it'll not break
    the jupyterhub notebook. It gets broken due to the package python3-notebook creating a symlink for the codemirror at /usr/lib/python3/dist-packages/notebook/static/components
    Now if cadabra2 which puts a part into that directory, while it's not yet symlinked the codeeditor part of notebook gets broken.

    If someone has a better solution please tell so.

    Best,
    Alex

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andreas Metzler@21:1/5 to myczko@phys.ethz.ch on Mon Nov 14 18:40:01 2022
    On 2022-11-14 Guerkan Myczko <myczko@phys.ethz.ch> wrote:
    I would like to use Pre-Depends in the cadabra2 packge so it'll not break
    the jupyterhub notebook. It gets broken due to the package python3-notebook creating a symlink for the codemirror at /usr/lib/python3/dist-packages/notebook/static/components
    Now if cadabra2 which puts a part into that directory, while it's not yet symlinked the codeeditor part of notebook gets broken.
    [...]

    I think you must not install files into the symlink but into the real
    directory where the symlink /usr/lib/python3/dist-packages/notebook/static/components/codemirror
    points to, afaict /usr/share/javascript/codemirror.

    cu Andreas
    --
    `What a good friend you are to him, Dr. Maturin. His other friends are
    so grateful to you.'
    `I sew his ears on from time to time, sure'

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Gordon Ball@21:1/5 to Guerkan Myczko on Mon Nov 14 21:20:01 2022
    On 14/11/2022 12:39, Guerkan Myczko wrote:
    Hi

    I would like to use Pre-Depends in the cadabra2 packge so it'll not break
    the jupyterhub notebook. It gets broken due to the package python3-notebook creating a symlink for the codemirror at /usr/lib/python3/dist-packages/notebook/static/components
    Now if cadabra2 which puts a part into that directory, while it's not yet symlinked the codeeditor part of notebook gets broken.

    With the jupyter-notebook uploader hat on, this sounds a bit worryingly fragile. The layout of the static directories (and whether they are
    symlinks or not) is really an implementation detail, rather than a
    public interface for extensions. Jupyter does provide a notebook
    extension mechanism (nbextension), which can be used to inject
    javascript into the notebook context (although I admittedly don't know
    how easy it would be to customise the code editor component with that,
    which is presumably what you're doing).

    Note that the way jupyter-notebook handles web content is significantly restructured in 6.5 (https://github.com/jupyter/notebook/pull/6474) and completely changed to use jupyterlab-derived javascript in 7.0 (https://github.com/jupyter/notebook/pull/6294), so drop-in
    modifications to the current layout will probably break. Notebook is
    likely to stay at 6.4 for bookworm, because any changes on the web side
    are a big pain for packaging, but moving to one of those versions during
    the next cycle is quite possible.

    Gordon

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)