Skip to content
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

JuypterLab Kernel Restarting in Desktop app but not when running JupyterLab via terminal #759

Open
prabirshrestha opened this issue Feb 2, 2024 · 7 comments
Labels

Comments

@prabirshrestha
Copy link

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.

image

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 jupyter and opened in browser via jupyter lab.
  • JupyterLab version: Version 4.0.12

Seems like someone else also might have been facing similar issue as mentioned at #504. Is there some way to say have unlimited memory and let the OS handle this?

Copy link

welcome bot commented Feb 2, 2024

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

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.
welcome
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! 👋

Welcome to the Jupyter community! 🎉

@mbektas
Copy link
Member

mbektas commented Feb 6, 2024

@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?

@prabirshrestha
Copy link
Author

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.

@JasonWeill JasonWeill changed the title JuypterLab Kernel Restarting when but not when running directly via terminal JuypterLab Kernel Restarting in Desktop app but not when running JupyterLab via terminal Feb 6, 2024
@JasonWeill
Copy link

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.

@JasonWeill
Copy link

@prabirshrestha Any errors in the logs?

@prabirshrestha
Copy link
Author

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

@usatenko
Copy link

I have the same issue (
The log is the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants