-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation of pywwt breaks JupyterLab under TLJH (The Littlest Jupyter Hub) #280
Comments
The errant behavior is that executing the first cell of a newly spawned notebook hangs. After about 30 seconds the JL interface reports that you are no longer connected to a viable Python kernel (which seems like the kernel has crashed): The only error that shows is in the log entry for the user (no errors in JH log or reverse proxy log):
|
I believe that you're correct that the problem is that new, incompatible versions of the jupyterlab packages are getting installed. The source of the issue isn't pywwt's dependency on these packages per se (it needs their libraries to create Jupyter widgets and whatnot), it's that a "conda" based installation will overwrite versions installed with "pip". In the TLJH case it seems that the installation only partially replaces some of the Jupyter-related packages, leading to internal inconsistencies and the crashes that you're experiencing. I can imagine that TLJH might require specific or specialized versions of the core packages, so I think the safest strategy is to make sure not to overwrite those. This can be accomplished by making sure to install pywwt (and most other Python packages) with "pip" rather than "conda". On the other hand, pywwt does have some dependencies that involve compiled code, and I think it's generally safer (and certainly faster) to install those through conda. It took me a few tries so I haven't tested this incantation from a pristine environment, but I think that an installation plan along the following lines should get things going without causing any breakage:
Let me know if that helps. |
Using the successful formula from recent fixes (#272), I tried to install pywwt in the TLJH implementation of JupyterHub (https://tljh.jupyter.org/en/latest/index.html). Unfortunately, pywwt installs its own version of JupyterLab (and related libraries) and something conflicts with the versions in TLJH, causing JupyterLab to stop working.
Why does pywwt include JupyterLab in the first place?
Is there a version of pywwt that does not include the JupyterLab and ipywidget (and related) libraries?
The text was updated successfully, but these errors were encountered: