New comment by tornaria on void-packages repository https://github.com/void-linux/void-packages/pull/35339#issuecomment-1026815018 Comment: > For some reason, I struggle to pick up this kernel in jupyterlab. I wonder if we need something similar to what Arch has > > ``` > # fix symlinks to assets > _pythonpath=`python -c "from sysconfig import get_path; print(get_path('platlib'))"` > for _i in $(ls "$srcdir"/sage-$pkgver/src/sage/ext_data/notebook-ipython); do > rm "$pkgdir"/usr/share/jupyter/kernels/sagemath/$_i > ln -s $_pythonpath/sage/ext_data/notebook-ipython/$_i "$pkgdir"/usr/share/jupyter/kernels/sagemath/ > done > ``` The jupyter kernel spec is fixed right at the top of the `post_install()`. > which also matches what we were doing previosuly, as well as suggested by sage [docs](https://doc.sagemath.org/html/en/installation/launching.html#setting-up-sagemath-as-a-jupyter-kernel-in-an-existing-jupyter-notebook-or-jupyterlab-installation) Otherwise, it builds and tests fine. The goal is for the notebook to work out of the box. How are you running it? I'm just doing ``` $ sagelib -notebook ``` and the browser is launched with a jupyter session in which I can create a new "SageMath 9.5" notebook. It is identical if run as `$ jupyter notebook`. It also works fine from jupyterlab (although jupyterlab does NOT work out of the box, see #35341) Are you sure you don't have leftover cruft from "fixing" of jupyter for the other package? You shouldn't have anything at all in `/usr/share/jupyter` other than what is shipped in this `sagelib` package.