[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Pre-Depends usage



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


Reply to: