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

Can not reload .env when ZMQ not working #9774

Closed
1 of 2 tasks
subercui opened this issue Apr 25, 2022 · 7 comments
Closed
1 of 2 tasks

Can not reload .env when ZMQ not working #9774

subercui opened this issue Apr 25, 2022 · 7 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug notebook-execution Kernels issues (start/restart/switch/execution, install ipykernel) verified Verification succeeded
Milestone

Comments

@subercui
Copy link

Applies 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

@subercui subercui added bug Issue identified by VS Code Team member as probable bug needs-triage labels Apr 25, 2022
@subercui
Copy link
Author

I think this is related to #9480, although that issue is closed.

@rchiodo
Copy link
Contributor

rchiodo commented Apr 25, 2022

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:

  1. Install GLIBC++ on the machine (that should fix the first error shown in your log). That will allow us to run kernels directly and the .env file will reload.

or

  1. Kill the jupyter server process every time you change the .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:

c:\Users\aku91\miniconda3\envs\condaEnvTest\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 2328

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.

@rchiodo rchiodo changed the title Can not reload .env Can not reload .env when ZMQ not working Apr 25, 2022
@theelderbeever
Copy link

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.

  1. Close code completely
  2. find ~/.vscode/extensions/ms-toolsai.jupyter* -name kernel.json -delete
  3. code .
  4. Run a notebook and it will pick up the changes.

@rchiodo
Copy link
Contributor

rchiodo commented Apr 26, 2022

Yeah for Mac M1, there's no workaround for ZMQ support. ZMQ needs to generate new node binaries for M1.

So the only workaround is to stop the jupyter server (and it sounds like kill the kernel.json files - oh yes, we write the ENV to them. That should be how we could fix this.)

@theelderbeever
Copy link

theelderbeever commented Apr 26, 2022

@rchiodo

as the ENV might be written to them by jupyter

Yes this is correct. Insepecting the kernel.json does show the environment variables as being written there.

Do you know of a way to run an extra start up command prior to launching vscode or the jupyter server? ie the find -delete from above

@rchiodo
Copy link
Contributor

rchiodo commented Apr 26, 2022

Do you know of a way to run an extra start up command prior to launching vscode or the jupyter server? ie the find -delete from above

Maybe. The only thing that comes to mind is to modify your jupyter source code on disk. The py files that get launched when we run 'jupyter notebook'.

Otherwise all startup code is run after the kernel has already started.

Theoretically you could run your own code there that imported the .env file and set the appropriate variables though.

Our setting for running code when the kernel starts is:

"jupyter.runStartupCommands": []

@DonJayamanne
Copy link
Contributor

Should be fixed with #10843

@DonJayamanne DonJayamanne self-assigned this Jul 25, 2022
@DonJayamanne DonJayamanne added this to the July 2022 milestone Jul 25, 2022
@amunger amunger added the verified Verification succeeded label Jul 28, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug notebook-execution Kernels issues (start/restart/switch/execution, install ipykernel) verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

6 participants