Can not reload .env when ZMQ not working
See original GitHub issueApplies To
- Notebooks (.ipynb files)
- Interactive Window and/or Cell Scripts (.py files with #%% markers)
What happened?
The env variables in the .env file will be loaded after installing the vscode-jupyter extension and first running a notebook. However, when I change the variable values in .env, those values are never updated in future runs even after 1. restarting the kernel 2. reloading the window 3. restarting the vscode.
The only walkaround so far is reinstalling vscode-jupyter extension everytime, which is clearly not a feasible solution.
VS Code Version
1.66.2
Jupyter Extension Version
v2022.3.1000901801
Jupyter logs
Visual Studio Code (1.66.2, ssh-remote, desktop)
Jupyter Extension Version: 2022.3.1000901801.
Python Extension Version: 2022.4.1.
Workspace folder ~/Code/DeepVelo
Error 19:22:19: Exception while attempting zmq : Error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /h/haotian/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/node_modules/zeromq/prebuilds/linux-x64/node.napi.glibc.node)
at Object.Module._extensions..node (node:internal/modules/cjs/loader:1183:18)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.i._load (/h/haotian/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:104:32156)
at Function.E._load (/h/haotian/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:104:28749)
at Function.g._load (/h/haotian/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:99:61429)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at load (/h/haotian/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/node_modules/node-gyp-build/index.js:1:543)
at Object.<anonymous> (/h/haotian/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/node_modules/zeromq/lib/native.js:1:136)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.i._load (/h/haotian/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:104:32156)
at Function.E._load (/h/haotian/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:104:28749)
at Function.g._load (/h/haotian/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:99:61429)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/h/haotian/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/node_modules/zeromq/lib/index.js:1:82)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.i._load (/h/haotian/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:104:32156)
at Function.E._load (/h/haotian/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:104:28749)
at Function.g._load (/h/haotian/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:99:61429)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.92747 (/h/haotian/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:3851668)
at __webpack_require__ (/h/haotian/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:4533298)
at u.zmqSupported (/h/haotian/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:535364)
at u.isSupportedForLocalLaunch (/h/haotian/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:535107)
at u.get isSupported [as isSupported] (/h/haotian/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:535017)
at t.registerTypes (/h/haotian/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:545810)
at /h/haotian/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:4537617
at /h/haotian/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:4538435
at /h/haotian/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:4538443
at e.activate (/h/haotian/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:4538565)
at Function._callActivateOptional (/h/haotian/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:90:16070)
at Function._callActivate (/h/haotian/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:90:15731)
at /h/haotian/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:90:13549
at g._activate (/h/haotian/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:85:8154)
at g._waitForDepsThenActivate (/h/haotian/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:85:8096)
at g._initialize (/h/haotian/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:85:7460) {
code: 'ERR_DLOPEN_FAILED'
}
User belongs to experiment group 'jupyterTest'
User belongs to experiment group 'jupyterEnhancedDataViewer'
Info 19:22:20: Old kernelspecs (created by Jupyter extension) stored in directory /h/haotian/.local/share/jupyter/kernels/__old_vscode_kernelspecs
Info 19:22:20: Attempting to start a server because of preload conditions ...
Info 19:22:20: Checking for server existence.
Info 19:22:20: Checking for server usability.
Info 19:22:20: Preferred kernel connection found in cache .jvsc74a57bd0c4a96b5b33e9918a79a56c93882e3be4fe6c52e21891fd42273b478ddcde2cd9./h/haotian/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/python./h/haotian/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/python.-m#ipykernel_launcher
Info 19:22:20: PreferredConnection: .jvsc74a57bd0c4a96b5b33e9918a79a56c93882e3be4fe6c52e21891fd42273b478ddcde2cd9./h/haotian/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/python./h/haotian/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/python.-m#ipykernel_launcher found for NotebookDocument: ~/Code/DeepVelo/examples/figure2.ipynb
Info 19:22:20: Early registration of controller for Kernel connection .jvsc74a57bd0c4a96b5b33e9918a79a56c93882e3be4fe6c52e21891fd42273b478ddcde2cd9./h/haotian/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/python./h/haotian/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/python.-m#ipykernel_launcher
Info 19:22:20: TargetController found ID: .jvsc74a57bd0c4a96b5b33e9918a79a56c93882e3be4fe6c52e21891fd42273b478ddcde2cd9./h/haotian/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/python./h/haotian/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/python.-m#ipykernel_launcher for document ~/Code/DeepVelo/examples/figure2.ipynb
Info 19:22:20: Setting controller affinity for ~/Code/DeepVelo/examples/figure2.ipynb .jvsc74a57bd0c4a96b5b33e9918a79a56c93882e3be4fe6c52e21891fd42273b478ddcde2cd9./h/haotian/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/python./h/haotian/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/python.-m#ipykernel_launcher
Info 19:22:20: Experiment status for python is {"enabled":true,"optInto":[],"optOutFrom":[]}
Info 19:22:20: Creating controller for jupyter-notebook with interpreter ~/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/bin/python
Info 19:22:21: Setting setActiveController for ~/Code/DeepVelo/examples/figure2.ipynb
Info 19:22:21: KernelProvider switched kernel to id = .jvsc74a57bd0c4a96b5b33e9918a79a56c93882e3be4fe6c52e21891fd42273b478ddcde2cd9./h/haotian/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/python./h/haotian/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/python.-m#ipykernel_launcher
Info 19:22:21: Starting Notebook in kernel.ts id = .jvsc74a57bd0c4a96b5b33e9918a79a56c93882e3be4fe6c52e21891fd42273b478ddcde2cd9./h/haotian/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/python./h/haotian/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/python.-m#ipykernel_launcher for ~/Code/DeepVelo/examples/figure2.ipynb
Info 19:22:21: Process Execution: > ~/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/bin/python -m pip list
> ~/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/bin/python -m pip list
Error 19:22:21: Failed to get activated environment variables ourselves Error: Command failed: . activate velocity && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /h/haotian/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/printEnvVariables.py
bash: activate: No such file or directory
at ChildProcess.exithandler (node:child_process:397:12)
at ChildProcess.emit (node:events:390:28)
at maybeClose (node:internal/child_process:1064:16)
at Socket.<anonymous> (node:internal/child_process:450:11)
at Socket.emit (node:events:390:28)
at Pipe.<anonymous> (node:net:687:12) {
killed: false,
code: 1,
signal: null,
cmd: ". activate velocity && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /h/haotian/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/printEnvVariables.py"
}
Error 19:22:21: Execing shell command, Class name = h, completed in 21ms, has a falsy return value, Arg 1: "~/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/printEnvVariables.py", Arg 2: {"env":{"LMOD_DIR":"/opt/lmod/lmod/libexec","MAIL":"/var/mail/haotian","SSH_CLIENT":"192.12.175.1 53178 22","USER":"haotian","LANGUAGE":"en_US:","LMOD_PKG":"/opt/lmod/lmod","SHLVL":"3","HOME":"/h/haotian","OLDPWD":"/h/haotian/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977","LMOD_sys":"Linux","LOGNAME":"haotian","LMOD_VERSION":"8.2.4","_":"/h/haotian/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/node","PATH":"/h/haotian/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","VSCODE_AGENT_FOLDER":"/h/haotian/.vscode-server","LMOD_SETTARG_FULL_SUPPORT":"no","LMOD_ROOT":"/opt/lmod","LANG":"en_US.UTF-8","SSH_AUTH_SOCK":"/tmp/vscode-ssh-auth-sock-112549338","SHELL":"/bin/bash","MODULEPATH_ROOT":"/opt/modulefiles","LMOD_CMD":"/opt/lmod/lmod/libexec/lmod","BASH_ENV":"/opt/lmod/lmod/init/bash","PWD":"/h/haotian","SSH_CONNECTION":"192.12.175.1 53178 10.9.30.64 22","XDG_DATA_DIRS":"/usr/local/share:/usr/share:/var/lib/snapd/desktop","MANPATH":"/opt/lmod/lmod/share/man:","MODULEPATH":"/pkgs/modulefiles:/pkgs/environment-modules","MODULESHOME":"/opt/lmod/lmod","BASH_FUNC_module%":"() { eval $($LMOD_CMD bash \"$@\") && eval $(${LMOD_SETTARG_CMD:-:} -s sh)\n}","BASH_FUNC_ml%":"() { eval $($LMOD_DIR/ml_cmd \"$@\")\n}","VSCODE_LOG_NATIVE":"false","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","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\":{}}","BROWSER":"/h/haotian/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/bin/helpers/browser.sh","VSCODE_CWD":"/h/haotian","VSCODE_IPC_HOOK_CLI":"/tmp/vscode-ipc-c3c7ae76-a449-4a13-8ef6-8a8a60b5796f.sock","APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL":"true","LD_LIBRARY_PATH":"/pkgs/cuda-10.1/lib64:/pkgs/cuda-10.1/extras/CUPTI/lib64","CUDA_HOME":"/pkgs/cuda-10.1","PYTHONWARNINGS":"ignore"},"shell":"bash","timeout":30000,"maxBuffer":1000000,"throwOnStdErr":false} Error: Command failed: . activate velocity && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /h/haotian/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/printEnvVariables.py
bash: activate: No such file or directory
at ChildProcess.exithandler (node:child_process:397:12)
at ChildProcess.emit (node:events:390:28)
at maybeClose (node:internal/child_process:1064:16)
at Socket.<anonymous> (node:internal/child_process:450:11)
at Socket.emit (node:events:390:28)
at Pipe.<anonymous> (node:net:687:12) {
killed: false,
code: 1,
signal: null,
cmd: ". activate velocity && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /h/haotian/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/printEnvVariables.py"
}
Info 19:22:21: Registering dummy command feature
Info 19:22:21: Process Execution: > ~/.conda/envs/velocity/bin/python -c "import jupyter"
> ~/.conda/envs/velocity/bin/python -c "import jupyter"
Info 19:22:21: Process Execution: > ~/.conda/envs/velocity/bin/python -c "import notebook"
> ~/.conda/envs/velocity/bin/python -c "import notebook"
Info 19:22:21: Process Execution: > ~/.conda/envs/velocity/bin/python -m jupyter kernelspec --version
> ~/.conda/envs/velocity/bin/python -m jupyter kernelspec --version
Info 19:22:22: Process Execution: > ~/.conda/envs/velocity/bin/python ~/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getJupyterKernelspecVersion.py
> ~/.conda/envs/velocity/bin/python ~/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getJupyterKernelspecVersion.py
Info 19:22:22: Starting notebook server.
Info 19:22:22: Connecting to server
Info 19:22:22: Launching server
Info 19:22:22: Starting Notebook
Info 19:22:22: Execute Cells request 0
Info 19:22:22: Execute Cell 0 ~/Code/DeepVelo/examples/figure2.ipynb
Info 19:22:22: Generating custom default config at /tmp/c6d09cc5-36b7-4cc5-81a9-5f5892e3c4ec/jupyter_notebook_config.py
Info 19:22:22: Starting Jupyter Notebook
Starting Jupyter from ~/.conda/envs/velocity/bin/python with command line --no-browser --notebook-dir="/h/haotian/Code/DeepVelo" --KernelManager.autorestart=False --config=/tmp/c6d09cc5-36b7-4cc5-81a9-5f5892e3c4ec/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
Info 19:22:22: Creating daemon pool for ~/.conda/envs/velocity/bin/python with env variables count 0
Info 19:22:22: Process Execution: > ~/.conda/envs/velocity/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 2796
> ~/.conda/envs/velocity/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 2796
Info 19:22:22: Process Execution: > ~/.conda/envs/velocity/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 2796
> ~/.conda/envs/velocity/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 2796
Info 19:22:22: Process Execution: > ~/.conda/envs/velocity/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 2796
> ~/.conda/envs/velocity/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 2796
Info 19:22:22: Process Execution: > ~/.conda/envs/velocity/bin/python (daemon) -m jupyter notebook --no-browser --notebook-dir="/h/haotian/Code/DeepVelo" --KernelManager.autorestart=False --config=/tmp/c6d09cc5-36b7-4cc5-81a9-5f5892e3c4ec/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
> ~/.conda/envs/velocity/bin/python (daemon) -m jupyter notebook --no-browser --notebook-dir="/h/haotian/Code/DeepVelo" --KernelManager.autorestart=False --config=/tmp/c6d09cc5-36b7-4cc5-81a9-5f5892e3c4ec/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
Info 19:22:22: Waiting for Jupyter Notebook
[I 19:22:24.265 NotebookApp] JupyterLab extension loaded from /h/haotian/.conda/envs/velocity/lib/python3.6/site-packages/jupyterlabInfo 19:22:24: [I 19:22:24.265 NotebookApp] JupyterLab extension loaded from /h/haotian/.conda/envs/velocity/lib/python3.6/site-packages/jupyterlab
Info 19:22:24: [I 19:22:24.265 NotebookApp] JupyterLab extension loaded from /h/haotian/.conda/envs/velocity/lib/python3.6/site-packages/jupyterlab
[I 19:22:24.265 NotebookApp] JupyterLab application directory is /h/haotian/.conda/envs/velocity/share/jupyter/labInfo 19:22:24: [I 19:22:24.265 NotebookApp] JupyterLab extension loaded from /h/haotian/.conda/envs/velocity/lib/python3.6/site-packages/jupyterlab
[I 19:22:24.265 NotebookApp] JupyterLab application directory is /h/haotian/.conda/envs/velocity/share/jupyter/lab
Info 19:22:24: [I 19:22:24.265 NotebookApp] JupyterLab extension loaded from /h/haotian/.conda/envs/velocity/lib/python3.6/site-packages/jupyterlab
[I 19:22:24.265 NotebookApp] JupyterLab application directory is /h/haotian/.conda/envs/velocity/share/jupyter/lab
[I 19:22:24.268 NotebookApp] Serving notebooks from local directory: /h/haotian/Code/DeepVeloInfo 19:22:24: [I 19:22:24.265 NotebookApp] JupyterLab extension loaded from /h/haotian/.conda/envs/velocity/lib/python3.6/site-packages/jupyterlab
[I 19:22:24.265 NotebookApp] JupyterLab application directory is /h/haotian/.conda/envs/velocity/share/jupyter/lab
[I 19:22:24.268 NotebookApp] Serving notebooks from local directory: /h/haotian/Code/DeepVelo
Info 19:22:24: [I 19:22:24.265 NotebookApp] JupyterLab extension loaded from /h/haotian/.conda/envs/velocity/lib/python3.6/site-packages/jupyterlab
[I 19:22:24.265 NotebookApp] JupyterLab application directory is /h/haotian/.conda/envs/velocity/share/jupyter/lab
[I 19:22:24.268 NotebookApp] Serving notebooks from local directory: /h/haotian/Code/DeepVelo
[I 19:22:24.269 NotebookApp] The Jupyter Notebook is running at:Info 19:22:24: [I 19:22:24.265 NotebookApp] JupyterLab extension loaded from /h/haotian/.conda/envs/velocity/lib/python3.6/site-packages/jupyterlab
[I 19:22:24.265 NotebookApp] JupyterLab application directory is /h/haotian/.conda/envs/velocity/share/jupyter/lab
[I 19:22:24.268 NotebookApp] Serving notebooks from local directory: /h/haotian/Code/DeepVelo
[I 19:22:24.269 NotebookApp] The Jupyter Notebook is running at:
Info 19:22:24: [I 19:22:24.265 NotebookApp] JupyterLab extension loaded from /h/haotian/.conda/envs/velocity/lib/python3.6/site-packages/jupyterlab
[I 19:22:24.265 NotebookApp] JupyterLab application directory is /h/haotian/.conda/envs/velocity/share/jupyter/lab
[I 19:22:24.268 NotebookApp] Serving notebooks from local directory: /h/haotian/Code/DeepVelo
[I 19:22:24.269 NotebookApp] The Jupyter Notebook is running at:
[I 19:22:24.269 NotebookApp] http://localhost:8888/?token=a7c0564d86d9c849d4710da5cbce6edef9bd02e721bf2642Info 19:22:24: [I 19:22:24.265 NotebookApp] JupyterLab extension loaded from /h/haotian/.conda/envs/velocity/lib/python3.6/site-packages/jupyterlab
[I 19:22:24.265 NotebookApp] JupyterLab application directory is /h/haotian/.conda/envs/velocity/share/jupyter/lab
[I 19:22:24.268 NotebookApp] Serving notebooks from local directory: /h/haotian/Code/DeepVelo
[I 19:22:24.269 NotebookApp] The Jupyter Notebook is running at:
[I 19:22:24.269 NotebookApp] http://localhost:8888/?token=a7c0564d86d9c849d4710da5cbce6edef9bd02e721bf2642
Info 19:22:24: Process Execution: > ~/.conda/envs/velocity/bin/python (daemon) ~/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> ~/.conda/envs/velocity/bin/python (daemon) ~/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getServerInfo.py
Info 19:22:24: [I 19:22:24.265 NotebookApp] JupyterLab extension loaded from /h/haotian/.conda/envs/velocity/lib/python3.6/site-packages/jupyterlab
[I 19:22:24.265 NotebookApp] JupyterLab application directory is /h/haotian/.conda/envs/velocity/share/jupyter/lab
[I 19:22:24.268 NotebookApp] Serving notebooks from local directory: /h/haotian/Code/DeepVelo
[I 19:22:24.269 NotebookApp] The Jupyter Notebook is running at:
[I 19:22:24.269 NotebookApp] http://localhost:8888/?token=a7c0564d86d9c849d4710da5cbce6edef9bd02e721bf2642
Info 19:22:24: Process Execution: > ~/.conda/envs/velocity/bin/python (daemon) ~/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> ~/.conda/envs/velocity/bin/python (daemon) ~/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getServerInfo.py
[I 19:22:24.269 NotebookApp] or http://127.0.0.1:8888/?token=a7c0564d86d9c849d4710da5cbce6edef9bd02e721bf2642Info 19:22:24: [I 19:22:24.265 NotebookApp] JupyterLab extension loaded from /h/haotian/.conda/envs/velocity/lib/python3.6/site-packages/jupyterlab
[I 19:22:24.265 NotebookApp] JupyterLab application directory is /h/haotian/.conda/envs/velocity/share/jupyter/lab
[I 19:22:24.268 NotebookApp] Serving notebooks from local directory: /h/haotian/Code/DeepVelo
[I 19:22:24.269 NotebookApp] The Jupyter Notebook is running at:
[I 19:22:24.269 NotebookApp] http://localhost:8888/?token=a7c0564d86d9c849d4710da5cbce6edef9bd02e721bf2642
[I 19:22:24.269 NotebookApp] or http://127.0.0.1:8888/?token=a7c0564d86d9c849d4710da5cbce6edef9bd02e721bf2642
Info 19:22:24: [I 19:22:24.265 NotebookApp] JupyterLab extension loaded from /h/haotian/.conda/envs/velocity/lib/python3.6/site-packages/jupyterlab
[I 19:22:24.265 NotebookApp] JupyterLab application directory is /h/haotian/.conda/envs/velocity/share/jupyter/lab
[I 19:22:24.268 NotebookApp] Serving notebooks from local directory: /h/haotian/Code/DeepVelo
[I 19:22:24.269 NotebookApp] The Jupyter Notebook is running at:
[I 19:22:24.269 NotebookApp] http://localhost:8888/?token=a7c0564d86d9c849d4710da5cbce6edef9bd02e721bf2642
[I 19:22:24.269 NotebookApp] or http://127.0.0.1:8888/?token=a7c0564d86d9c849d4710da5cbce6edef9bd02e721bf2642
[I 19:22:24.269 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).Info 19:22:24: [I 19:22:24.265 NotebookApp] JupyterLab extension loaded from /h/haotian/.conda/envs/velocity/lib/python3.6/site-packages/jupyterlab
[I 19:22:24.265 NotebookApp] JupyterLab application directory is /h/haotian/.conda/envs/velocity/share/jupyter/lab
[I 19:22:24.268 NotebookApp] Serving notebooks from local directory: /h/haotian/Code/DeepVelo
[I 19:22:24.269 NotebookApp] The Jupyter Notebook is running at:
[I 19:22:24.269 NotebookApp] http://localhost:8888/?token=a7c0564d86d9c849d4710da5cbce6edef9bd02e721bf2642
[I 19:22:24.269 NotebookApp] or http://127.0.0.1:8888/?token=a7c0564d86d9c849d4710da5cbce6edef9bd02e721bf2642
[I 19:22:24.269 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
Info 19:22:24: [I 19:22:24.265 NotebookApp] JupyterLab extension loaded from /h/haotian/.conda/envs/velocity/lib/python3.6/site-packages/jupyterlab
[I 19:22:24.265 NotebookApp] JupyterLab application directory is /h/haotian/.conda/envs/velocity/share/jupyter/lab
[I 19:22:24.268 NotebookApp] Serving notebooks from local directory: /h/haotian/Code/DeepVelo
[I 19:22:24.269 NotebookApp] The Jupyter Notebook is running at:
[I 19:22:24.269 NotebookApp] http://localhost:8888/?token=a7c0564d86d9c849d4710da5cbce6edef9bd02e721bf2642
[I 19:22:24.269 NotebookApp] or http://127.0.0.1:8888/?token=a7c0564d86d9c849d4710da5cbce6edef9bd02e721bf2642
[I 19:22:24.269 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 19:22:24.286 NotebookApp]
To access the notebook, open this file in a browser:
file:///h/haotian/.local/share/jupyter/runtime/nbserver-2967-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=a7c0564d86d9c849d4710da5cbce6edef9bd02e721bf2642
or http://127.0.0.1:8888/?token=a7c0564d86d9c849d4710da5cbce6edef9bd02e721bf2642Info 19:22:24: [I 19:22:24.265 NotebookApp] JupyterLab extension loaded from /h/haotian/.conda/envs/velocity/lib/python3.6/site-packages/jupyterlab
[I 19:22:24.265 NotebookApp] JupyterLab application directory is /h/haotian/.conda/envs/velocity/share/jupyter/lab
[I 19:22:24.268 NotebookApp] Serving notebooks from local directory: /h/haotian/Code/DeepVelo
[I 19:22:24.269 NotebookApp] The Jupyter Notebook is running at:
[I 19:22:24.269 NotebookApp] http://localhost:8888/?token=a7c0564d86d9c849d4710da5cbce6edef9bd02e721bf2642
[I 19:22:24.269 NotebookApp] or http://127.0.0.1:8888/?token=a7c0564d86d9c849d4710da5cbce6edef9bd02e721bf2642
[I 19:22:24.269 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 19:22:24.286 NotebookApp]
To access the notebook, open this file in a browser:
file:///h/haotian/.local/share/jupyter/runtime/nbserver-2967-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=a7c0564d86d9c849d4710da5cbce6edef9bd02e721bf2642
or http://127.0.0.1:8888/?token=a7c0564d86d9c849d4710da5cbce6edef9bd02e721bf2642
Info 19:22:24: [I 19:22:24.265 NotebookApp] JupyterLab extension loaded from /h/haotian/.conda/envs/velocity/lib/python3.6/site-packages/jupyterlab
[I 19:22:24.265 NotebookApp] JupyterLab application directory is /h/haotian/.conda/envs/velocity/share/jupyter/lab
[I 19:22:24.268 NotebookApp] Serving notebooks from local directory: /h/haotian/Code/DeepVelo
[I 19:22:24.269 NotebookApp] The Jupyter Notebook is running at:
[I 19:22:24.269 NotebookApp] http://localhost:8888/?token=a7c0564d86d9c849d4710da5cbce6edef9bd02e721bf2642
[I 19:22:24.269 NotebookApp] or http://127.0.0.1:8888/?token=a7c0564d86d9c849d4710da5cbce6edef9bd02e721bf2642
[I 19:22:24.269 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 19:22:24.286 NotebookApp]
To access the notebook, open this file in a browser:
file:///h/haotian/.local/share/jupyter/runtime/nbserver-2967-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=a7c0564d86d9c849d4710da5cbce6edef9bd02e721bf2642
or http://127.0.0.1:8888/?token=a7c0564d86d9c849d4710da5cbce6edef9bd02e721bf2642
Info 19:22:25: Connecting to process server
Info 19:22:25: Connecting server kernel http://localhost:8888/
Info 19:22:25: Creating server with settings : {"baseUrl":"http://localhost:8888/","appUrl":"","wsUrl":"ws://localhost:8888/","token":"a7c0564d86d9c849d4710da5cbce6edef9bd02e721bf2642","appendToken":true,"init":{"cache":"no-store","credentials":"same-origin"}}
Info 19:22:25: Connection complete server
Info 19:22:25: Server started.
[I 19:22:25.216 NotebookApp] Creating new notebook in /examples
Info 19:22:25: Process Execution: > ~/.conda/envs/velocity/bin/python (daemon) ~/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> ~/.conda/envs/velocity/bin/python (daemon) ~/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getServerInfo.py
Info 19:22:25: Process Execution: > ~/.conda/envs/velocity/bin/python (daemon) ~/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> ~/.conda/envs/velocity/bin/python (daemon) ~/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getServerInfo.py
Info 19:22:25: Process Execution: > ~/.conda/envs/velocity/bin/python (daemon) ~/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> ~/.conda/envs/velocity/bin/python (daemon) ~/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getServerInfo.py
Info 19:22:25: Process Execution: > ~/.conda/envs/velocity/bin/python (daemon) ~/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> ~/.conda/envs/velocity/bin/python (daemon) ~/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getServerInfo.py
Info 19:22:25: Process Execution: > ~/.conda/envs/velocity/bin/python ~/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> ~/.conda/envs/velocity/bin/python ~/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getServerInfo.py
Info 19:22:25: Process Execution: > ~/.conda/envs/velocity/bin/python ~/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> ~/.conda/envs/velocity/bin/python ~/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getServerInfo.py
Info 19:22:25: installMissingDependencies ~/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/bin/python, ui.disabled=true for resource ~/Code/DeepVelo/examples/figure2.ipynb
Info 19:22:25: Process Execution: > ~/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/bin/python -c "import ipykernel"
> ~/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/bin/python -c "import ipykernel"
Info 19:22:26: RegisterKernel for .jvsc74a57bd0c4a96b5b33e9918a79a56c93882e3be4fe6c52e21891fd42273b478ddcde2cd9./h/haotian/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/python./h/haotian/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/python.-m#ipykernel_launcher into ~/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/temp/jupyter/kernels/python373jvsc74a57bd0c4a96b5b33e9918a79a56c93882e3be4fe6c52e21891fd42273b478ddcde2cd9/kernel.json
Info 19:22:26: Spec argv[0] updated from 'python' to '~/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/bin/python'
Info 19:22:26: Adding env Variable PYTHONNOUSERSITE to ~/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/bin/python
Info 19:22:26: Starting a new session for kernel id = .jvsc74a57bd0c4a96b5b33e9918a79a56c93882e3be4fe6c52e21891fd42273b478ddcde2cd9./h/haotian/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/python./h/haotian/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/python.-m#ipykernel_launcher, name = python373jvsc74a57bd0c4a96b5b33e9918a79a56c93882e3be4fe6c52e21891fd42273b478ddcde2cd9 for ~/Code/DeepVelo/examples/figure2.ipynb
[I 19:22:26.638 NotebookApp] Kernel started: 85150691-4de8-4aa2-bf8e-5259ef778541
Info 19:22:26: Waiting for idle on (kernel): 85150691-4de8-4aa2-bf8e-5259ef778541 -> unknown
[W 19:22:26.674 NotebookApp] delete /examples/figure2-jvsc-aafda2e3-6402-46f1-8773-c962f5cdd003.ipynb
Info 19:22:28: Finished waiting for idle on (kernel): 85150691-4de8-4aa2-bf8e-5259ef778541 -> idle
Info 19:22:28: Started session for kernel .jvsc74a57bd0c4a96b5b33e9918a79a56c93882e3be4fe6c52e21891fd42273b478ddcde2cd9./h/haotian/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/python./h/haotian/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/python.-m#ipykernel_launcher
Info 19:22:28: Finished connecting kernel .jvsc74a57bd0c4a96b5b33e9918a79a56c93882e3be4fe6c52e21891fd42273b478ddcde2cd9./h/haotian/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/python./h/haotian/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/python.-m#ipykernel_launcher
Info 19:22:28: UpdateWorkingDirectoryAndPath in Kernel
Info 19:22:28: Executing silently Code (idle) = import site\nsite.addsitedir(site.getusersitepackages())\nimport os\nimport sys\n%cd "/h/haotian/Code/De
Info 19:22:28: Executing silently Code (completed) = import site\nsite.addsitedir(site.getusersitepackages())\nimport os\nimport sys\n%cd "/h/haotian/Code/De
Info 19:22:28: Waiting for idle on (kernel): 85150691-4de8-4aa2-bf8e-5259ef778541 -> idle
Info 19:22:28: Finished waiting for idle on (kernel): 85150691-4de8-4aa2-bf8e-5259ef778541 -> idle
Info 19:22:28: Cell 0 executed with state Success
Info 19:22:44: Execute Cells request 0
Info 19:22:44: Execute Cell 0 ~/Code/DeepVelo/examples/figure2.ipynb
Info 19:22:44: Cell 0 executed with state Success
Info 19:22:47: Restart requested file:///h/haotian/Code/DeepVelo/examples/figure2.ipynb
Info 19:22:47: Restart kernel execution
Info 19:22:47: Cancel pending cells
Info 19:22:47: Restarting 85150691-4de8-4aa2-bf8e-5259ef778541
[I 19:22:47.209 NotebookApp] Creating new notebook in /examples
Info 19:22:47: installMissingDependencies ~/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/bin/python, ui.disabled=false for resource ~/Code/DeepVelo/examples/figure2.ipynb
Info 19:22:47: Process Execution: > ~/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/bin/python -c "import ipykernel"
> ~/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/bin/python -c "import ipykernel"
Info 19:22:48: Spec argv[0] updated from '/h/haotian/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/bin/python' to '~/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/bin/python'
Info 19:22:48: Adding env Variable PYTHONNOUSERSITE to ~/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/bin/python
Info 19:22:48: Starting a new session for kernel id = .jvsc74a57bd0c4a96b5b33e9918a79a56c93882e3be4fe6c52e21891fd42273b478ddcde2cd9./h/haotian/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/python./h/haotian/.cache/pypoetry/virtualenvs/deepvelo-k1wFjE0q-py3.7/python.-m#ipykernel_launcher, name = python373jvsc74a57bd0c4a96b5b33e9918a79a56c93882e3be4fe6c52e21891fd42273b478ddcde2cd9 for ~/Code/DeepVelo/examples/figure2.ipynb
[I 19:22:48.411 NotebookApp] Kernel started: 98de68f0-227e-4ecf-8771-208b9e91dfe4
Info 19:22:48: Execute Cells request 0
Info 19:22:48: Execute Cell 0 ~/Code/DeepVelo/examples/figure2.ipynb
Info 19:22:48: Waiting for idle on (kernel): 98de68f0-227e-4ecf-8771-208b9e91dfe4 -> unknown
[W 19:22:48.465 NotebookApp] delete /examples/figure2-jvsc-1904e5cb-b09f-410c-9c75-dd75116f7cc7.ipynb
Info 19:22:49: Finished waiting for idle on (kernel): 98de68f0-227e-4ecf-8771-208b9e91dfe4 -> idle
Info 19:22:49: Got new session 98de68f0-227e-4ecf-8771-208b9e91dfe4
Info 19:22:49: Started new restart session
Info 19:22:49: Executing silently Code (idle) = import sys\nprint(sys.executable)
[I 19:22:49.907 NotebookApp] Kernel shutdown: 85150691-4de8-4aa2-bf8e-5259ef778541
Info 19:22:50: Executing silently Code (completed) = import sys\nprint(sys.executable)
Info 19:22:50: UpdateWorkingDirectoryAndPath in Kernel
Info 19:22:50: Executing silently Code (idle) = import site\nsite.addsitedir(site.getusersitepackages())\nimport os\nimport sys\n%cd "/h/haotian/Code/De
Info 19:22:50: Executing silently Code (completed) = import site\nsite.addsitedir(site.getusersitepackages())\nimport os\nimport sys\n%cd "/h/haotian/Code/De
Info 19:22:50: Waiting for idle on (kernel): 98de68f0-227e-4ecf-8771-208b9e91dfe4 -> idle
Info 19:22:50: Finished waiting for idle on (kernel): 98de68f0-227e-4ecf-8771-208b9e91dfe4 -> idle
Info 19:22:50: Cell 0 executed with state Success
Coding Language and Runtime Version
Python 3.9
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
Remote
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top Results From Across the Web
env file is not reloaded/interpolated · Issue #9480
I cannot reload the environment variables. I've tried restarting the kernel, the language server, vscode itself - with no success.
Read more >Reloading .env variables without restarting server (Laravel ...
Doing some research it seems that I configured MySQL access too late, so I should restart the server in order to get the...
Read more >zsys(3) - libzapi - CZMQ
When you enable IPv6, sockets will accept // and connect to both IPv4 and IPv6 peers. You can override the setting on //...
Read more >Shuffle extensions documentation
This is documentation for integrating and sending data from third-party services to Shuffle. Not to be confused with apps and workflows ...
Read more >Release
As the README says: Fabric is a Python (2.5-2.7) library and command-line tool for streamlining the use of SSH for application.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The only way I have found to solve this issue (Apple M1) is to delete the kernelspec for vscode everytime I change the
.env
file and then restart VSCode.find ~/.vscode/extensions/ms-toolsai.jupyter* -name kernel.json -delete
code .
Thanks for the issue.
This is a function of how we start kernels on your machine. We’re not pulling in the
.env
file changes when restarting the kernel.There’s two things you can do:
.env
file will reload.or
.env
file. When you get that first error (no GLIBC++) we have to run Jupyter server manually instead of allowing us to direct launch kernels.That other process is only started once. The bug here is that the
.env
file is only picked up by the jupyter server process and hence it won’t change on restart (server is not shutdown until VS code shuts down).On my machine that process has a command line like so:
with the
jupyter_daemon
being the key part.If you kill the jupyter_daemon process, it should force us to recreate it and pick up your
.env
file changes.