# Getting list of kernel IDs from lab extension

**URL:** <https://discourse.jupyter.org/t/getting-list-of-kernel-ids-from-lab-extension/20822>\
**Category:** JupyterLab\
**Created:** [August 9, 2023, 2:26am UTC](https://discourse.jupyter.org/t/getting-list-of-kernel-ids-from-lab-extension/20822 "2023-08-09T02:26:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IlKa](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/ilka/32/10618_2.png) [@IlKa](https://discourse.jupyter.org/u/IlKa)\
**Post date:** [August 9, 2023, 2:26am UTC](https://discourse.jupyter.org/t/getting-list-of-kernel-ids-from-lab-extension/20822/1 "2023-08-09T02:26:25Z")

</div>

Hello.  
I create a new notebook i.e:

```auto
    documentManager.createNew("file.ipynb", "default", {id: "ipykernel"});

```

the problem is I do not know the kernel id. Is there any API to get list of them?
