question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Processes remain after quitting JuputerLab Desktop app on Mac

See original GitHub issue

Description

On MacOS 11.6.3 (Big Sur), when I use JupyterLab Destkop and exit the application, I see there are still some processes running:

One is of the type: python -m jupyterlab --no-browser --LabServerApp.schemas_dir=/Applications/JupyterLab.app/Contents/Resources/build/schemas --JupyterApp.config_file_name= --ServerApp.port=50583 --ServerApp.password= --ServerApp.allow_origin=* --ContentsManager.allow_hidden=True

and each of these has multiple processes of the form /Users/ivan/Library/jupyterlab-desktop/jlab_server/bin/python -m ipykernel_launcher -f /Users/ivan/Library/Jupyter/runtime/kernel-<SOMEUUID>.json

Screen Shot 2022-06-29 at 1 28 18 AM Screen Shot 2022-06-29 at 1 26 15 AM

Reproduce

Will try to reproduce from clean slate next time (laptop has been running for a few days so not sure what exactly could be the cause).

One thing I have been running is Django runserve from inside a notebook using !./manage.py runserver which kind of “blocks” that notebook until I press STOP button, but maybe I quit the app without stopping?

Expected behavior

No more processes after quitting app.

Context

  • Operating System and version: Mac 11.6.3
  • JupyterLab-Desktop version: Version 3.3.4-2
  • Installer: .dmg

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
tuanpham96commented, Dec 10, 2022

Just updated and briefly tested (nothing showed up when doing ps aux | grep -i '[j]upyter' after closing), also worked on Ubuntu 20.04. Thanks for fixing this!

1reaction
ivanistheonecommented, Dec 10, 2022

I can confirm latest JupyterLab Desktop exists cleanly. (installed via the .dmg installed from https://github.com/jupyterlab/jupyterlab-desktop/releases/tag/v3.5.1-1)

I only did limited testing: I opened, closed, then ran pstree and don’t see any jupyter processes running.

If @tuanpham96 can confirm on linux too, I guess we could close this after.

Thanks to all involved in fixing this!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Keep Jupyter Notebook Running Even After Browser is Closed
The script stays running even when I'm disconnected. 1.Configure a remote desktop on the server. You may skip this step if the server...
Read more >
Running and Quitting – Plotting and Programming in Python
Objectives. Launch the JupyterLab server. Create a new Python script. Create a Jupyter notebook. Shutdown the JupyterLab server.
Read more >
cannot quit jupyter notebook server running - Stack Overflow
I am using Jupyter Notebook for a project. Since I ssh into a linux cluster at work I use
Read more >
Quit an app or process in Activity Monitor on Mac
Use Activity Monitor on your Mac to quit, force quit, or send a signal to terminate a process, if the process is in...
Read more >
The JupyterLab Interface — JupyterLab 3.6.0b0 documentation
Kernel: actions for managing kernels, which are separate processes for ... The left JupyterLab sidebar showing a variety of files in the file...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found