jupyterlab-desktop
jupyterlab-desktop copied to clipboard
JuypterLab Kernel Restarting in Desktop app but not when running JupyterLab via terminal
Description
I get the following error when running from jupyterlab-desktop but not when running from the home-brew installation of Jupyter lab when running the server from the terminal.
Reproduce
!pip install --upgrade langchain #--quiet
!pip install --upgrade sentence_transformers #--quiet
from langchain.embeddings import HuggingFaceEmbeddings
embeddings = HuggingFaceEmbeddings(model_name='sentence-transformers/all-MiniLM-L6-v2',
model_kwargs={'device': 'cpu'})
Expected behavior
Shouldn't crash.
Context
Jupyter lab desktop with error:
- Operating System and version: Mac Sonoma 14.2.1 (M3 Max with 48Gb Ram)
- JupyterLab-Desktop version: 4.0.11-1
- Installer: arm64 .dmg
Jupyter lab server with no error:
- OS: same as above
- Installed via
brew install jupyterand opened in browser viajupyter lab. - JupyterLab version: Version 4.0.12
Seems like someone else also might have been facing similar issue as mentioned at https://github.com/jupyterlab/jupyterlab-desktop/issues/504. Is there some way to say have unlimited memory and let the OS handle this?
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:
@prabirshrestha this could be caused by one of the dependency Python packages. the environments you are comparing are not identical. could you try with the latest version (4.0.12), and by also updating the bundled environment?
I get the same error. I even tried following the uninstall instructions with clean installation as mentioned in https://github.com/jupyterlab/jupyterlab-desktop/blob/master/user-guide.md#uninstalling-jupyterlab-desktop.
Do you see any error messages in the JupyterLab Desktop log when the kernel crashes? On macOS, the logs are in ~/Library/Logs/jupyterlab-desktop.
@prabirshrestha Any errors in the logs?
Here is the log.
[2024-02-13 10:20:27.754] [warn] Connection lost, reconnecting in 0 seconds.
[2024-02-13 10:20:27.762] [error] Uncaught (in promise) Error: Canceled future for kernel_info_request message before replies were done
[2024-02-13 10:20:28.082] [warn] Failed to fetch ipywidgets through the "jupyter.widget.control" comm channel, fallback to fetching individual model state. Reason: Control comm was closed too early
I have the same issue ( The log is the same