Matplotlib interactive plotting with Qt causes subsequent cells to hang
See original GitHub issueEnvironment data
- VS Code version: version 1.62 (October 2021 release)
- Jupyter Extension version (available under the Extensions sidebar): v2021.10.1001414422
- Python Extension version (available under the Extensions sidebar): v2021.11.1422169775
- OS (Windows | Mac | Linux distro) and version: Ubuntu 18.04 running in WSL2
- Python and/or Anaconda version: 3.9.7
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): conda
- Jupyter server running: Local | Remote | Extension is enabled on ‘WSL: Ubuntu-18.04’
I’m running an X server on my Windows 10 PC to view interactive Qt5 matplotlib plots from Ubuntu 18.04 running in WSL2. Unfortunately a recent update of the Jupyter extension seems to have introduced a bug where only the first cell after the matplotlib qt
command runs. I can switch between the last working version (v2021.10.1001393861) and the new version (e.g. v2021.10.1001414422) and reliably reproduce the bug.
Expected behaviour
Manually executing the following three cells should import modules, produce a simple line plot in an interactive window, and print “done”. The most recent update which still produces the expected behaviour is v2021.10.1001393861.
# %%
import numpy as np
from IPython import get_ipython
get_ipython().run_line_magic('matplotlib', 'qt')
import matplotlib.pyplot as plt
# %%
plt.plot(np.linspace(0,1,10))
# %%
print('done')
Actual behaviour
The first two cells execute and the third cell hangs. All subsequent cells hang. Closing the plot has no effect.
Steps to reproduce:
Run these three cells in sequence from the editor using a basic conda environment with matplotlib, numpy, and ipykernel installed.
# %%
import numpy as np
from IPython import get_ipython
get_ipython().run_line_magic('matplotlib', 'qt')
import matplotlib.pyplot as plt
# %%
plt.plot(np.linspace(0,1,10))
# %%
print('done')
Logs
Logs are for the broken version.
Info 2021-11-05 13:55:45: Restart requested vscode-interactive:Interactive-1.interactive
Info 2021-11-05 13:55:45: Restart kernel execution
Info 2021-11-05 13:55:45: Cancel pending cells
Info 2021-11-05 13:55:45: Starting raw kernel Python 3.9.7 64-bit ('basic': conda)
Info 2021-11-05 13:55:45: installMissingDependencies /home/grobs/miniconda3/envs/basic/bin/python
Info 2021-11-05 13:55:45: Restarting 51c54e48-3866-4c04-a346-2e2d239ec335
Error 2021-11-05 13:55:45: Failed to get activated conda env variables for basic: /home/grobs/miniconda3/envs/basic/bin/python
Info 2021-11-05 13:55:45: Process Execution: > ~/miniconda3/envs/basic/bin/python -c "import ipykernel"
> ~/miniconda3/envs/basic/bin/python -c "import ipykernel"
Info 2021-11-05 13:55:45: Install Missing Dependencies, Class name = S, completed in 94ms, has a falsy return value, Return Value: undefined
Info 2021-11-05 13:55:45: Kernel launching with ports 9075,9076,9077,9078,9079. Start port is 9000
Info 2021-11-05 13:55:45: Launching kernel daemon for Python 3.9.7 64-bit ('basic': conda) # /home/grobs/miniconda3/envs/basic/bin/python
Error 2021-11-05 13:55:45: Failed to get activated conda env variables for basic: /home/grobs/miniconda3/envs/basic/bin/python
Error 2021-11-05 13:55:45: Failed to get activated conda env variables for basic: /home/grobs/miniconda3/envs/basic/bin/python
Error 2021-11-05 13:55:45: Failed to get activated conda env variables for basic: /home/grobs/miniconda3/envs/basic/bin/python
Info 2021-11-05 13:55:45: Creating daemon process for /home/grobs/miniconda3/envs/basic/bin/python with env variables count 67
Info 2021-11-05 13:55:45: Process Execution: > ~/miniconda3/envs/basic/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> ~/miniconda3/envs/basic/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
Info 2021-11-05 13:55:45: Starting kernel from scratch with options {"env":{"USER":"grobs","VSCODE_WSL_EXT_LOCATION":"/mnt/c/Users/gawr/.vscode/extensions/ms-vscode-remote.remote-wsl-0.58.5","SHLVL":"2","WT_PROFILE_ID":"{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}","HOME":"/home/grobs","WSL_DISTRO_NAME":"Ubuntu-18.04","LOGNAME":"grobs","WSL_INTEROP":"/run/WSL/2332_interop","NAME":"Code","_":"/home/grobs/miniconda3/envs/basic/bin/python","TERM":"xterm-256color","PATH":"/home/grobs/.vscode-server/bin/b3318bc0524af3d74034b8bb8a64df0ccf35549a/bin:/usr/local/freesurfer/7.2.0/bin:/usr/local/freesurfer/7.2.0/fsfast/bin:/usr/local/freesurfer/7.2.0/tktools:/usr/local/freesurfer/7.2.0/mni/bin:/home/grobs/miniconda3/envs/basic/bin:/home/grobs/miniconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program Files/WindowsApps/Microsoft.WindowsTerminal_1.11.2921.0_x64__8wekyb3d8bbwe:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Windows/System32/OpenSSH:/mnt/c/Program Files/PuTTY:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/ProgramData/DockerDesktop/version-bin:/mnt/c/Users/gawr/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/gawr/AppData/Local/Programs/Microsoft VS Code/bin:/snap/bin","VSCODE_AGENT_FOLDER":"/home/grobs/.vscode-server","WT_SESSION":"fd7a9f05-4bb9-448d-adc4-67d28de9ec45","LANG":"C.UTF-8","SHELL":"/bin/bash","PWD":"/mnt/c/Users/gawr/AppData/Local/Programs/Microsoft VS Code","HOSTTYPE":"x86_64","WSLENV":"ELECTRON_RUN_AS_NODE/w:WT_SESSION::WT_PROFILE_ID","VSCODE_INJECT_NODE_MODULE_LOOKUP_PATH":"/home/grobs/.vscode-server/bin/b3318bc0524af3d74034b8bb8a64df0ccf35549a/remote/node_modules","VSCODE_CWD":"/mnt/c/Users/gawr/AppData/Local/Programs/Microsoft VS Code","CONDA_SHLVL":"2","OS":"Linux","LS_COLORS":"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:","CONDA_EXE":"/home/grobs/miniconda3/bin/conda","SUBJECTS_DIR":"/home/grobs/subjects","LESSCLOSE":"/usr/bin/lesspipe %s %s","MNI_DIR":"/usr/local/freesurfer/7.2.0/mni","DISPLAY":"172.29.32.1:0","FSFAST_HOME":"/usr/local/freesurfer/7.2.0/fsfast","CONDA_PREFIX":"/home/grobs/miniconda3/envs/basic","SSH_AUTH_SOCK":"/tmp/ssh-7vhCCAMmOiF3/agent.50","FSF_OUTPUT_FORMAT":"nii.gz","_CE_M":"","LOCAL_DIR":"/usr/local/freesurfer/7.2.0/local","FMRI_ANALYSIS_DIR":"/usr/local/freesurfer/7.2.0/fsfast","FUNCTIONALS_DIR":"/usr/local/freesurfer/7.2.0/sessions","FREESURFER_HOME":"/usr/local/freesurfer/7.2.0","CONDA_PYTHON_EXE":"/home/grobs/miniconda3/bin/python","SSH_AGENT_PID":"51","XDG_DATA_DIRS":"/usr/local/share:/usr/share:/var/lib/snapd/desktop","_CE_CONDA":"","MNI_PERL5LIB":"/usr/local/freesurfer/7.2.0/mni/share/perl5","CONDA_PROMPT_MODIFIER":"(basic) ","MINC_BIN_DIR":"/usr/local/freesurfer/7.2.0/mni/bin","FIX_VERTEX_AREA":"","PERL5LIB":"/usr/local/freesurfer/7.2.0/mni/share/perl5","FS_OVERRIDE":"0","MINC_LIB_DIR":"/usr/local/freesurfer/7.2.0/mni/lib","FS_LICENSE":"/usr/local/freesurfer/7.2.0/license.txt","CONDA_DEFAULT_ENV":"basic","MNI_DATAPATH":"/usr/local/freesurfer/7.2.0/mni/data","FREESURFER":"/usr/local/freesurfer/7.2.0","LESSOPEN":"| /usr/bin/lesspipe %s","VSCODE_LOG_NATIVE":"false","VSCODE_AMD_ENTRYPOINT":"vs/server/remoteExtensionHostProcess","VSCODE_PIPE_LOGGING":"true","VSCODE_VERBOSE_LOGGING":"true","VSCODE_EXTHOST_WILL_SEND_SOCKET":"true","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_LOG_STACK":"false","VSCODE_NLS_CONFIG":"{\"locale\":\"en\",\"availableLanguages\":{}}","CONDA_PREFIX_1":"/home/grobs/miniconda3","VSCODE_IPC_HOOK_CLI":"/tmp/vscode-ipc-b6222675-f7e6-40dd-9a8b-a735e7dde763.sock","APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL":"true","PYTHONUNBUFFERED":"1","PYTHONIOENCODING":"utf-8"},"cwd":"/home/grobs/meg_analysis"}
Info 2021-11-05 13:55:45: Python Daemon (pid: 6946): Execute rpc method exec_module in DS Daemon
Info 2021-11-05 13:55:45: Python Daemon (pid: 6946): Execute rpc method exec_module from /home/grobs/miniconda3/envs/basic/bin/python
Info 2021-11-05 13:55:45: Python Daemon (pid: 6946): Exec module in DS Kernel Launcher Daemon ipykernel_launcher with args ['--ip=127.0.0.1', '--stdin=9078', '--control=9076', '--hb=9075', '--Session.signature_scheme="hmac-sha256"', '--Session.key=b"9b7d1f68-95da-4329-a6d1-edf9306bd29d"', '--shell=9077', '--transport="tcp"', '--iopub=9079', '--f=/tmp/tmp-6542xDnxgKHM6b5k.json']
Info 2021-11-05 13:55:45: Python Daemon (pid: 6946): Exec in DS Kernel Launcher Daemon (observable) ipykernel_launcher with args ['--ip=127.0.0.1', '--stdin=9078', '--control=9076', '--hb=9075', '--Session.signature_scheme="hmac-sha256"', '--Session.key=b"9b7d1f68-95da-4329-a6d1-edf9306bd29d"', '--shell=9077', '--transport="tcp"', '--iopub=9079', '--f=/tmp/tmp-6542xDnxgKHM6b5k.json']
Info 2021-11-05 13:55:45: Python Daemon (pid: 6946): Exec in DS Kernel Launcher Daemon (observable) ['/home/grobs/miniconda3/envs/basic/bin/python', '-m', 'ipykernel_launcher', '--ip=127.0.0.1', '--stdin=9078', '--control=9076', '--hb=9075', '--Session.signature_scheme="hmac-sha256"', '--Session.key=b"9b7d1f68-95da-4329-a6d1-edf9306bd29d"', '--shell=9077', '--transport="tcp"', '--iopub=9079', '--f=/tmp/tmp-6542xDnxgKHM6b5k.json']
Info 2021-11-05 13:55:45: Python Daemon (pid: 6946): Exec in DS Kernel Launcher Daemon (observable)
Info 2021-11-05 13:55:45: Python Daemon (pid: 6946): Kernel launched, with PID 6947
Warn 2021-11-05 13:55:45: Python Daemon (pid: 6946): Waiting for Kernel to die 6947
Info 2021-11-05 13:55:45: Launching kernel daemon, Class name = p, completed in 45ms, has a truthy return value, Arg 1: <Uri:/home/grobs/meg_analysis/for_notebook.py>, Arg 2: "/home/grobs/meg_analysis", Arg 3: {"interpreterPath":"/home/grobs/miniconda3/envs/basic/bin/python","name":"python397jvsc74a57bd0ea5d3ea4e504429a544d1553bc21d85a7673a48ee674c84e04ac5ffc06b339d4","argv":["python","-m","ipykernel_launcher","--ip=127.0.0.1","--stdin=9078","--control=9076","--hb=9075","--Session.signature_scheme=\"hmac-sha256\"","--Session.key=b\"9b7d1f68-95da-4329-a6d1-edf9306bd29d\"","--shell=9077","--transport=\"tcp\"","--iopub=9079","--f=/tmp/tmp-6542xDnxgKHM6b5k.json"],"language":"python","path":"python","display_name":"Python 3.9.7 64-bit ('basic': conda)","metadata":{"interpreter":{"sysPrefix":"/home/grobs/miniconda3/envs/basic","envType":"Conda","envName":"basic","envPath":"/home/grobs/miniconda3/envs/basic","path":"/home/grobs/miniconda3/envs/basic/bin/python","architecture":3,"sysVersion":"3.9.7 (default, Sep 16 2021, 13:09:58) \n[GCC 7.5.0]","version":{"raw":"3.9.7","major":3,"minor":9,"patch":7,"build":[],"prerelease":["final","0"]},"companyDisplayName":"Anaconda, Inc.","displayName":"Python 3.9.7 64-bit ('basic': conda)"}},"env":{}}, Arg 4: {"sysPrefix":"/home/grobs/miniconda3/envs/basic","envType":"Conda","envName":"basic","envPath":"/home/grobs/miniconda3/envs/basic","path":"/home/grobs/miniconda3/envs/basic/bin/python","architecture":3,"sysVersion":"3.9.7 (default, Sep 16 2021, 13:09:58) \n[GCC 7.5.0]","version":{"raw":"3.9.7","major":3,"minor":9,"patch":7,"build":[],"prerelease":["final","0"]},"companyDisplayName":"Anaconda, Inc.","displayName":"Python 3.9.7 64-bit ('basic': conda)"}, Return Value: <Return value cannot be serialized for logging>
Info 2021-11-05 13:55:45: Launching kernel in kernelProcess.ts, Class name = y, completed in 45ms, has a truthy return value, Arg 1: "/home/grobs/meg_analysis", Return Value: {"proc":{"_events":{},"_eventsCount":2,"_closesNeeded":3,"_closesGot":0,"connected":false,"signalCode":null,"exitCode":null,"killed":false,"spawnfile":"/home/grobs/miniconda3/envs/basic/bin/python","_handle":{"pid":6946},"spawnargs":["/home/grobs/miniconda3/envs/basic/bin/python","-m","vscode_datascience_helpers.daemon","--daemon-module=vscode_datascience_helpers.kernel_launcher_daemon","-v"],"pid":6946,"stdin":{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":null,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null,"readable":false},"_events":{},"_eventsCount":3,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":false,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},"stdout":{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":true,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"_events":{"close":[null,null]},"_eventsCount":4,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"writable":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},"stderr":{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":true,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":3,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"writable":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},"stdio":[{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":null,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null,"readable":false},"_events":{},"_eventsCount":3,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":false,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":true,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"_events":{"close":[null,null]},"_eventsCount":4,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"writable":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":true,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":3,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"writable":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null}]},"out":{"_isScalar":false,"observers":[],"closed":false,"isStopped":false,"hasError":false,"thrownError":null}}
Info 2021-11-05 13:55:45: KernelProcess output: Content-Length: 368
Content-Type: application/vscode-jsonrpc; charset=utf8
{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "write to stderr: /home/grobs/miniconda3/envs/basic/lib/python3.9/site-packages/traitlets/traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '\"hmac-sha256\"' if you require traitlets >=5.\n", "pid": 6946}}
Info 2021-11-05 13:55:45: Python Daemon (pid: 6946): write to stderr: /home/grobs/miniconda3/envs/basic/lib/python3.9/site-packages/traitlets/traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.
Info 2021-11-05 13:55:45: KernelProcess output: Content-Length: 344
Content-Type: application/vscode-jsonrpc; charset=utf8
{"jsonrpc": "2.0", "method": "output", "params": {"source": "stderr", "out": "/home/grobs/miniconda3/envs/basic/lib/python3.9/site-packages/traitlets/traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '\"hmac-sha256\"' if you require traitlets >=5.\n"}}Content-Length: 114
Content-Type: application/vscode-jsonrpc; charset=utf8
{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "write to stderr: warn(\n", "pid": 6946}}Content-Length: 90
Content-Type: application/vscode-jsonrpc; charset=utf8
{"jsonrpc": "2.0", "method": "output", "params": {"source": "stderr", "out": " warn(\n"}}Content-Length: 380
Content-Type: application/vscode-jsonrpc; charset=utf8
{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "write to stderr: /home/grobs/miniconda3/envs/basic/lib/python3.9/site-packages/traitlets/traitlets.py:2157: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '9b7d1f68-95da-4329-a6d1-edf9306bd29d' instead of 'b\"9b7d1f68-95da-4329-a6d1-edf9306bd29d\"'.\n", "pid": 6946}}Content-Length: 356
Content-Type: application/vscode-jsonrpc; charset=utf8
{"jsonrpc": "2.0", "method": "output", "params": {"source": "stderr", "out": "/home/grobs/miniconda3/envs/basic/lib/python3.9/site-packages/traitlets/traitlets.py:2157: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '9b7d1f68-95da-4329-a6d1-edf9306bd29d' instead of 'b\"9b7d1f68-95da-4329-a6d1-edf9306bd29d\"'.\n"}}Content-Length: 114
Content-Type: application/vscode-jsonrpc; charset=utf8
{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "write to stderr: warn(\n", "pid": 6946}}Content-Length: 90
Content-Type: application/vscode-jsonrpc; charset=utf8
{"jsonrpc": "2.0", "method": "output", "params": {"source": "stderr", "out": " warn(\n"}}
Warn 2021-11-05 13:55:45: Kernel 6946 as possibly died, StdErr from Kernel Process /home/grobs/miniconda3/envs/basic/lib/python3.9/site-packages/traitlets/traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.
Warn 2021-11-05 13:55:45: StdErr from Kernel Process /home/grobs/miniconda3/envs/basic/lib/python3.9/site-packages/traitlets/traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.
Info 2021-11-05 13:55:45: Python Daemon (pid: 6946): write to stderr: warn(
Warn 2021-11-05 13:55:45: Kernel 6946 as possibly died, StdErr from Kernel Process warn(
Warn 2021-11-05 13:55:45: StdErr from Kernel Process warn(
Info 2021-11-05 13:55:45: Python Daemon (pid: 6946): write to stderr: /home/grobs/miniconda3/envs/basic/lib/python3.9/site-packages/traitlets/traitlets.py:2157: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '9b7d1f68-95da-4329-a6d1-edf9306bd29d' instead of 'b"9b7d1f68-95da-4329-a6d1-edf9306bd29d"'.
Warn 2021-11-05 13:55:45: Kernel 6946 as possibly died, StdErr from Kernel Process /home/grobs/miniconda3/envs/basic/lib/python3.9/site-packages/traitlets/traitlets.py:2157: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '9b7d1f68-95da-4329-a6d1-edf9306bd29d' instead of 'b"9b7d1f68-95da-4329-a6d1-edf9306bd29d"'.
Warn 2021-11-05 13:55:45: StdErr from Kernel Process /home/grobs/miniconda3/envs/basic/lib/python3.9/site-packages/traitlets/traitlets.py:2157: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '9b7d1f68-95da-4329-a6d1-edf9306bd29d' instead of 'b"9b7d1f68-95da-4329-a6d1-edf9306bd29d"'.
Info 2021-11-05 13:55:45: Python Daemon (pid: 6946): write to stderr: warn(
Warn 2021-11-05 13:55:45: Kernel 6946 as possibly died, StdErr from Kernel Process warn(
Warn 2021-11-05 13:55:45: StdErr from Kernel Process warn(
Warn 2021-11-05 13:55:46: Didn't get response for requestKernelInfo
Info 2021-11-05 13:55:46: Got new session f6e53168-9725-4307-bc43-8ed54a7f0ed1
Info 2021-11-05 13:55:46: Started new restart session
Info 2021-11-05 13:55:46: shutdownSession 51c54e48-3866-4c04-a346-2e2d239ec335, .jvsc74a57bd0ea5d3ea4e504429a544d1553bc21d85a7673a48ee674c84e04ac5ffc06b339d4./home/grobs/miniconda3/envs/basic/python./home/grobs/miniconda3/envs/basic/python.-m#ipykernel_launcher - start
Info 2021-11-05 13:55:46: Session can be shutdown .jvsc74a57bd0ea5d3ea4e504429a544d1553bc21d85a7673a48ee674c84e04ac5ffc06b339d4./home/grobs/miniconda3/envs/basic/python./home/grobs/miniconda3/envs/basic/python.-m#ipykernel_launcher
Info 2021-11-05 13:55:46: Dispose Kernel process
Info 2021-11-05 13:55:46: kill daemon
Info 2021-11-05 13:55:46: UpdateWorkingDirectoryAndPath in Kernel
Info 2021-11-05 13:55:46: KernelProcess output: Content-Length: 131
Content-Type: application/vscode-jsonrpc; charset=utf8
{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "Execute rpc method kill_kernel in DS Daemon", "pid": 6928}}
Info 2021-11-05 13:55:46: Python Daemon (pid: 6928): Execute rpc method kill_kernel in DS Daemon
Info 2021-11-05 13:55:46: KernelProcess output: Content-Length: 168
Content-Type: application/vscode-jsonrpc; charset=utf8
{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "Execute rpc method kill_kernel from /home/grobs/miniconda3/envs/basic/bin/python", "pid": 6928}}Content-Length: 128
Content-Type: application/vscode-jsonrpc; charset=utf8
{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "Kill kernel in DS Kernel Launcher Daemon", "pid": 6928}}Content-Length: 138
Content-Type: application/vscode-jsonrpc; charset=utf8
{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "Kill kernel in DS Kernel Launcher Daemon, pid 6929", "pid": 6928}}
Info 2021-11-05 13:55:46: Python Daemon (pid: 6928): Execute rpc method kill_kernel from /home/grobs/miniconda3/envs/basic/bin/python
Info 2021-11-05 13:55:46: KernelProcess output: Content-Length: 43
Content-Type: application/vscode-jsonrpc; charset=utf8
{"jsonrpc": "2.0", "id": 2, "result": null}
Info 2021-11-05 13:55:46: Python Daemon (pid: 6928): Kill kernel in DS Kernel Launcher Daemon
Info 2021-11-05 13:55:46: Python Daemon (pid: 6928): Kill kernel in DS Kernel Launcher Daemon, pid 6929
Info 2021-11-05 13:55:46: Dispose Kernel process
Info 2021-11-05 13:55:46: shutdownSession 51c54e48-3866-4c04-a346-2e2d239ec335, .jvsc74a57bd0ea5d3ea4e504429a544d1553bc21d85a7673a48ee674c84e04ac5ffc06b339d4./home/grobs/miniconda3/envs/basic/python./home/grobs/miniconda3/envs/basic/python.-m#ipykernel_launcher - shutdown complete
Info 2021-11-05 13:55:46: Dispose Kernel process
Info 2021-11-05 13:55:46: KernelProcess Exit Exit - undefined
Info 2021-11-05 13:55:46: changeDirectoryIfPossible
Info 2021-11-05 13:55:46: Executing (status Idle) silently Code = import os\nimport sys\n%cd "/home/grobs/meg_analysis"\nif os.getcwd() not in sys.path:\nsys.path.ins
Info 2021-11-05 13:55:46: Executing silently Code (completed) = import os\nimport sys\n%cd "/home/grobs/meg_analysis"\nif os.getcwd() not in sys.path:\nsys.path.ins
Info 2021-11-05 13:55:46: Executing (status Idle) silently Code = %config Completer.use_jedi = False
Info 2021-11-05 13:55:46: Executing silently Code (completed) = %config Completer.use_jedi = False
Info 2021-11-05 13:55:46: Executing (status Idle) silently Code = %config InlineBackend.figure_formats = ['png']
Info 2021-11-05 13:55:46: Executing silently Code (completed) = %config InlineBackend.figure_formats = ['png']
Info 2021-11-05 13:55:46: Executing (status Idle) silently Code = import sys\nprint(sys.executable)
Info 2021-11-05 13:55:46: Executing silently Code (completed) = import sys\nprint(sys.executable)
Info 2021-11-05 13:55:46: Waiting for idle on (kernel): f6e53168-9725-4307-bc43-8ed54a7f0ed1 -> idle
Info 2021-11-05 13:55:46: Finished waiting for idle on (kernel): f6e53168-9725-4307-bc43-8ed54a7f0ed1 -> idle
Info 2021-11-05 13:55:46: Executing (status Idle) silently Code = __file__ = '/home/grobs/meg_analysis/for_notebook.py'
Info 2021-11-05 13:55:46: Executing silently Code (completed) = __file__ = '/home/grobs/meg_analysis/for_notebook.py'
Info 2021-11-05 13:55:49: Adding hash for 1 = f475ed43daca with 4 lines
Info 2021-11-05 13:55:49: Finished execution for 947da0d4-029b-42e4-95c3-0cb50299cadd
Info 2021-11-05 13:55:49: KernelProcess output: Content-Length: 182
Content-Type: application/vscode-jsonrpc; charset=utf8
{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "write to stderr: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-grobs'\n", "pid": 6946}}
Info 2021-11-05 13:55:49: Python Daemon (pid: 6946): write to stderr: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-grobs'
Info 2021-11-05 13:55:49: KernelProcess output: Content-Length: 158
Content-Type: application/vscode-jsonrpc; charset=utf8
{"jsonrpc": "2.0", "method": "output", "params": {"source": "stderr", "out": "QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-grobs'\n"}}
Warn 2021-11-05 13:55:49: Kernel 6946 as possibly died, StdErr from Kernel Process QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-grobs'
Warn 2021-11-05 13:55:49: StdErr from Kernel Process QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-grobs'
Info 2021-11-05 13:55:51: Adding hash for 2 = 4e7389085c14 with 2 lines
Info 2021-11-05 13:55:51: Finished execution for 712c2e7e-96af-4461-9f56-462b20f92946
Info 2021-11-05 13:55:54: Adding hash for 3 = fcecaaa62083 with 2 lines
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top GitHub Comments
Thanks for the bug. This commit might have caused this problem (at least it’s the only thing that would interfere with comm like that)
https://github.com/microsoft/vscode-jupyter/commit/01ff4cce9e79a6e050f637f7253c99b7432629c6
I can repro, so we should be able to debug it to see why.
I would also like to add that this qt plotting feature is important for my work as well. Any work around to be able to scroll through the MNE output plots on my computer connected to a remote server are welcome