Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

Scenario (general):

1.1 Start code-server:

WORKON_HOME=~ code-server --cert --cert-host 172.30.15.137 --disable-telemetry --disable-update-check ~/_railcars

2.1 Open https://172.30.15.137:8080 in Google Chrome

3.1 Open Untitled.ipynb, run three cells: import pandas, create DataFrame, sum dataframe values

4.1 Close / Do not close code-server tab in Chrome

4.2 Check output in terminal

5.1 Kill code-server with Ctrl+C

5.2 Check output in terminal

6.1 Check ps -ef output for hanging processes

7.1 Check ~/.local/share/jupyter/runtime for left kernel and nbserver files

8.1 kill -9 hanging processes, clear files in runtime folder

Scenario 1: keep ~/.local/share/code-server/extensions/ms-toolsai.jupyter-<VER>/pythonFiles/lib/python/pyls_jsonrpc, close tab in (4.1)

Results:

4.2) The client has disconnected gracefully ... Process exited with code: 0

5.2) (no output)

  1. [1st run] Hanging processes:
kpsuser  10389     1  0 06:20 pts/0    00:00:00 /home/kpsuser/kps_venv/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 10317
kpsuser  10390     1  0 06:20 pts/0    00:00:00 /home/kpsuser/kps_venv/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 10317
kpsuser  10392     1  0 06:20 pts/0    00:00:00 /home/kpsuser/kps_venv/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 10317
kpsuser  10406 10392  0 06:20 ?        00:00:01 /home/kpsuser/kps_venv/bin/python -m ipykernel_launcher -f /home/kpsuser/.local/share/jupyter/runtime/kernel-b3b8a4f3-8937-44a9-af87-c74b23e58f94.json

!![2nd, 3rd and 4th run] no hanging processes

  1. Left files: kernel-f6ae4b99-521a-4513-a151-8e63a3955e20.json, nbserver-10898-open.html, nbserver-10898.json

Scenario 2: keep ~/.local/share/code-server/extensions/ms-toolsai.jupyter-<VER>/pythonFiles/lib/python/pyls_jsonrpc, do not close tab in (4.1)

Results:

5.2) [1st run] "Pty Host" crashed with exit code null ... "File Watcher" crashed with exit code null ... a socket was left hanging

!![2nd, 3rd run] no output

  1. [1st, 3rd run] Hanging processes:
kpsuser  11090     1  0 08:16 pts/0    00:00:00 /home/kpsuser/kps_venv/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 11024
kpsuser  11091     1  0 08:16 pts/0    00:00:00 /home/kpsuser/kps_venv/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 11024
kpsuser  11092     1  1 08:16 pts/0    00:00:01 /home/kpsuser/kps_venv/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 11024
kpsuser  11107 11092  0 08:16 ?        00:00:00 /home/kpsuser/kps_venv/bin/python -m ipykernel_launcher -f /home/kpsuser/.local/share/jupyter/runtime/kernel-de2fc02a-12ce-491f-bf84-373bf7f570f8.json

!! [2nd run]:

kpsuser  12148     1  1 08:32 pts/0    00:00:01 /home/kpsuser/kps_venv/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 12081
kpsuser  12169 12148  0 08:32 ?        00:00:00 [python] <defunct>
  1. [1st, 3rd run] Left files: kernel-de2fc02a-12ce-491f-bf84-373bf7f570f8.json, nbserver-11092-open.html, nbserver-11092.json

!! [2nd run] kernel-233cdd57-7a81-4f2b-b3ae-3650a5fb4ce6.json

Scenario 3: rename ~/.local/share/code-server/extensions/ms-toolsai.jupyter-<VER>/pythonFiles/lib/python/pyls_jsonrpc, close tab in (4.1)

Results:

4.2) The client has disconnected gracefully ... Process exited with code: 0

5.2) (no output)

  1. (no hanging processes)

  2. Left files: kernel-0931f4ce-24c1-497b-b9d0-0d357f353dbe.json

Scenario 4: rename ~/.local/share/code-server/extensions/ms-toolsai.jupyter-<VER>/pythonFiles/lib/python/pyls_jsonrpc, do not close tab in (4.1)

Results:

5.2) [1st run] (no output)

!![2nd run] "Pty Host" crashed with exit code null ... "File Watcher" crashed with exit code null ... a socket was left hanging

  1. (no hanging processes)

  2. (no left files)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment