# Kernel is not starting in VS code

**URL:** <http://hpc-community.unige.ch/t/kernel-is-not-starting-in-vs-code/2927>\
**Category:** Uncategorized\
**Created:** [June 19, 2023, 3:27pm UTC](http://hpc-community.unige.ch/t/kernel-is-not-starting-in-vs-code/2927 "2023-06-19T15:27:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sayan.Saha](http://hpc-community.unige.ch/letter_avatar_proxy/v4/letter/s/7cd45c/32.png) [@Sayan.Saha](http://hpc-community.unige.ch/u/Sayan.Saha)\
**Post date:** [June 19, 2023, 3:27pm UTC](http://hpc-community.unige.ch/t/kernel-is-not-starting-in-vs-code/2927/1 "2023-06-19T15:27:30Z")

</div>

Dear HPC team,

I have been facing issues while starting the kernel in a VS code notebook like this:

 ![image](http://hpc-community.unige.ch/uploads/default/original/1X/3b09ad91cee84ae1f533694dfc2ea74f29f0f2d0.png)  
This is how the output log looks like

```auto
error 17:20:20.963: Error in execution (get message for cell) [a [Error]: Unable to start Kernel 'clusterlens (Python 3.9.12)' due to connection timeout. 
View Jupyter [log](command:jupyter.viewOutput) for further details.
	at /home/users/s/sahasay2/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2196796
	at runMicrotasks (<anonymous>)
	at runNextTicks (node:internal/process/task_queues:61:5)
	at listOnTimeout (node:internal/timers:528:9)
	at processTimers (node:internal/timers:502:7)
	at async x.launch (/home/users/s/sahasay2/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1303220346/out/extension.node.js:2:2196867)] {
  category: 'timeout',
  kernelConnectionMetadata: {
    kind: 'startUsingPythonInterpreter',
    kernelSpec: {
      specFile: '/home/users/s/sahasay2/.vscode-server/extensions/ms-toolsai.jupyter-2022.9.1303220346/temp/jupyter/kernels/python3912jvsc74a57bd01883db892102973d874819fd14de5c8b760f245e761a043f10233516056de8ab/kernel.json',
      interpreterPath: '/home/users/s/sahasay2/.conda/envs/clusterlens/bin/python',
      isRegisteredByVSC: 'registeredByNewVersionOfExt',
      name: 'python3912jvsc74a57bd01883db892102973d874819fd14de5c8b760f245e761a043f10233516056de8ab',
      argv: [Array],
      language: 'python',
      executable: 'python',
      display_name: "Python 3.9.12 ('clusterlens': conda)",
      metadata: [Object],
      env: {},
      interrupt_mode: undefined
    },
    interpreter: {
      id: '/home/users/s/sahasay2/.conda/envs/clusterlens/bin/python',
      sysPrefix: '/home/users/s/sahasay2/.conda/envs/clusterlens',
      envType: 'Conda',
      envName: 'clusterlens',
      envPath: [p],
      architecture: 3,
      sysVersion: '3.9.12 (main, Apr 5 2022, 06:56:58) \n[GCC 7.5.0]',
      version: [Object],
      companyDisplayName: 'Anaconda, Inc.',
      displayName: "Python 3.9.12 ('clusterlens': conda)",
      detailedDisplayName: "Python 3.9.12 ('clusterlens': conda)",
      uri: [p]
    },
    id: '.jvsc74a57bd01883db892102973d874819fd14de5c8b760f245e761a043f10233516056de8ab./home/users/s/sahasay2/.conda/envs/clusterlens/python./home/users/s/sahasay2/.conda/envs/clusterlens/python.-m#ipykernel_launcher'
  }
}

```

Could you please help to understand the problem? FYI, the `clusterlens` environment completely works from terminal.

Thank & Regards,  
Sayan

---

<div class="post-metadata">

**Author:** ![Adrien.Albert](http://hpc-community.unige.ch/user_avatar/hpc-community.unige.ch/adrien.albert/32/188_2.png) [@Adrien.Albert](http://hpc-community.unige.ch/u/Adrien.Albert)\
**Post date:** [June 20, 2023, 9:03am UTC](http://hpc-community.unige.ch/t/kernel-is-not-starting-in-vs-code/2927/2 "2023-06-20T09:03:40Z")

</div>

Hi,

Could you give me more details about how you launch your job (your sbatch)? 🙂

---

<div class="post-metadata">

**Author:** ![Sayan.Saha](http://hpc-community.unige.ch/letter_avatar_proxy/v4/letter/s/7cd45c/32.png) [@Sayan.Saha](http://hpc-community.unige.ch/u/Sayan.Saha)\
**Post date:** [June 20, 2023, 10:56am UTC](http://hpc-community.unige.ch/t/kernel-is-not-starting-in-vs-code/2927/3 "2023-06-20T10:56:52Z")

</div>

Hi, here I am just trying to use VS code using the remote-ssh extension. When I am running a jupyter-notebook. The kernel is not starting. 😕

---

<div class="post-metadata">

**Author:** ![Yann.Sagon](http://hpc-community.unige.ch/user_avatar/hpc-community.unige.ch/yann.sagon/32/3_2.png) [@Yann.Sagon](http://hpc-community.unige.ch/u/Yann.Sagon)\
**Post date:** [June 20, 2023, 2:11pm UTC](http://hpc-community.unige.ch/t/kernel-is-not-starting-in-vs-code/2927/4 "2023-06-20T14:11:23Z")

</div>

Hi, we remind you that you have to launch your `Jupypter` session on a compute node and not directly on the login node.

Here is a [tutorial](https://gitlab.unige.ch/hpc/hpc-lunch/-/blob/main/Session-2023.05.06/how-to-launch-jupyterlab-on-Baobab.md) I presented during the latest hpc-lunch.

For our understanding: what is the point to launch `Jupyter` through vscode on the login node or compute node?
