jupyter-server-proxy isn't working anymore #125
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Nothing is displayed on the launcher page, which means something is wrong with jupyter-server-proxy.
Installing
jupyter-nbclassic
fixes the issue.I should probably include a few more details: this package got automatically uninstalled last week and reinstalling it fixes the issue.
This issue has come back! And
jupyter-nbclassic
is installed this time!OK, I finally got jupyter-server-proxy to work by installing
nbclassic
,jupyter_server_mathjax
,ipython_genutils
, andnotebook
usingpip
. I don't know which one fixes the issue so time to investigate that.jupyter_server_mathjax
fixes a completely different issue that I reported to the AUR package. It's not relevant here.I'm going to try to figure out why all those dependencies are needed by trying jupyter-server-proxy on a different machine.
OK, I figured out the issue. It's actually due to Arch Linux's packaging for the
jupyterlab
package. JupyterLab 3.x still depends onnbclassic
as shown here:In addition,
nbclassic
is likely packaged wrong, sinceipython-genutils
depends on it:This is why random Arch Linux JupyterLab updates kept on breaking
jupyter-server-proxy
. The official repos are screwing up.That makes sense why this package broke the first time when Arch removed
nbclassic
from the deps for JupyterLab:d92f731294
I'm not entirely sure what's going on with
ipython-genutils
, but it's likely an Arch official repos messup too.I'm going to add these two packages as dependencies for the
jupyter-server-proxy
AUR package, which doesn't fix the upstream issue but at least makes this package usable. And shoot, the AUR seems to be down right now. 😭Shoot, this bug is back again. SIGH. Arch Linux really needs to get their Jupyter packaging fixed, because this is getting annoying. Time to
pip install jupyter-server-proxy
and see what dependencies Arch is messing up...I did
Unfortunately I couldn't find any packages that are installed by pip and not installed by Arch Linux, and even worse, running
jupyter lab
inside thevenv
also doesn't fix the bug...The actual reason
It turns out this occurence of the bug is a completely different beast. It's not because of a missing package but because JupyterLab isn't loading the correct config file. Unfortunately, the Jupyter config system is very complicated and not well documented.
The solution
For whatever reason, the solution for the bug this time is to rename
/etc/jupyter/jupyter_notebook_config.py
to/etc/jupyter/jupyter_lab_config.py
because that was an obvious thing to try. Actually, the only clue I had for this was thatjupyter-lab --generate-config
makes ajupyter_lab_config.py
file, so I guess JupyterLab has its own unique config file now (breaking change!!!).And in a sick ironic twist,
python-nbclassic
andipython-genutils
don't seem to be needed anymore since the bug doesn't reappear after uninstalling them. I guess JupyterLab just got a lot of updates (and evil breaking changes!) recently or something. I guess I'll update the AUR package to remove these dependencies.I'm tired.
jupyter-server-proxy
, can you please stop breaking every month?