# Jupyterlab Kernel Name

**URL:** <https://discourse.jupyter.org/t/jupyterlab-kernel-name/6791>\
**Category:** JupyterLab\
**Tags:** jupyterlab, jupyterhub, help-wanted\
**Created:** [November 17, 2020, 4:30pm UTC](https://discourse.jupyter.org/t/jupyterlab-kernel-name/6791 "2020-11-17T16:30:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![statiksof](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/statiksof/32/2553_2.png) [@statiksof](https://discourse.jupyter.org/u/statiksof)\
**Post date:** [November 17, 2020, 4:30pm UTC](https://discourse.jupyter.org/t/jupyterlab-kernel-name/6791/1 "2020-11-17T16:30:22Z")

</div>

Hi, I am trying to analyze the `jupyterhub` logs to sort kernels through their names. I was using the `kernel_name` from the `url`. Unfortunately, this only works for Jupyter notebooks. For jupyter lab, we have something like this:

`/kernelspecs?123456` which change randomly.

Is there a way to have the name of the started kernel in jupyterlab?

Thank you in advance.

S.

---

<div class="post-metadata">

**Author:** ![jasongrout](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/jasongrout/32/371_2.png) [@jasongrout](https://discourse.jupyter.org/u/jasongrout)\
**Post date:** [November 17, 2020, 7:43pm UTC](https://discourse.jupyter.org/t/jupyterlab-kernel-name/6791/2 "2020-11-17T19:43:48Z")

</div>

> [@statiksof](#):
>
> `/kernelspecs?123456` which change randomly.

That’s the request from JupyterLab to retreive the kernel specs from the server api, with a cache-busting argument to make sure we are getting the most recent update.

I’m not sure exactly what you are doing here. Did you want a different server request? What was the corresponding url from the classic notebook logs?

---

<div class="post-metadata">

**Author:** ![statiksof](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/statiksof/32/2553_2.png) [@statiksof](https://discourse.jupyter.org/u/statiksof)\
**Post date:** [November 18, 2020, 8:58am UTC](https://discourse.jupyter.org/t/jupyterlab-kernel-name/6791/3 "2020-11-18T08:58:14Z")

</div>

Thanks @jasongrout for your reply. In classic jupyter notebooks, the url is like this:

`Untitled.ipynb?kernel_name=anaconda3_bleeding`

I am using this information to analyze the use of each kernel by name. This (I assume) not possible with jupyterlab. This can only be found in user notebook log file as ` Kernel args: {'kernel_name': 'xxx', 'cwd': 'xxx'}` but not in jupyterhub log.

I hope it is clear to you now.
