# Cling kernel for Jupyter on Windows does not work

**URL:** <https://root-forum.cern.ch/t/cling-kernel-for-jupyter-on-windows-does-not-work/58207>\
**Category:** ROOT\
**Tags:** cling\
**Created:** [February 18, 2024, 6:16am UTC](https://root-forum.cern.ch/t/cling-kernel-for-jupyter-on-windows-does-not-work/58207 "2024-02-18T06:16:41Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![nickolayl](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/nickolayl/32/35717_2.png) [@nickolayl](https://root-forum.cern.ch/u/nickolayl)\
**Post date:** [February 18, 2024, 6:16am UTC](https://root-forum.cern.ch/t/cling-kernel-for-jupyter-on-windows-does-not-work/58207/1 "2024-02-18T06:16:42Z")

</div>

Dear Root Community,

I have the following problem: C++ cling kernels for Jupyter fail to run in Jupyter. I can see the icons for all 4 kernels but when I try any of the C++ cling kernels they fail to start with the error. Please see the screenshot attached.

 ![Screenshot 2024-02-18 095953](https://root-forum.cern.ch/uploads/default/original/3X/b/4/b457f908dc225ec6407eaa1fe4fc90bc4e93bb27.png)

**EXPECTED BEHAVIOUR:**  
C++ cling kernels for Jupyter run in Jupyter.

**ACTUAL BEHAVIOUR:**  
C++ cling kernels for Jupyter won’t start.

> Error Starting Kernel
> 
> [WinError 2] The system cannot find the file specified

**STEPS TO REPRODUCE**

1. install Windows 11 version 23H2
2. follow official instructions on how to build `cling` on Windows. Build for `llvm`, `clang` and `cling` succeeded. `cling --version` shows `1.1~dev`. I confirm that I can code freely from command line.
3. install `jupyter` with `mamba` (`conda`) in a separate environment.
4. make `cling` available through `PATH` along with everything that is in the `build` folder resulted from **step 2**.
5. follow the official instructions on how to install C++ cling kernels for Jupyter from github (githubcom/root-project/cling/tree/aa6d4924b5c15290f4b7f019193daf417d81c121/tools/Jupyter) _can’t post a full link due to the rules_.  
No errors. Kernels appear in Jupyter’s interface.

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [February 19, 2024, 6:57am UTC](https://root-forum.cern.ch/t/cling-kernel-for-jupyter-on-windows-does-not-work/58207/2 "2024-02-19T06:57:25Z")

</div>

Hi Nikolay,

Welcome to the ROOT community!  
I add in the loop our Win expert @bellenot .

Cheers,  
D

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [February 19, 2024, 10:12am UTC](https://root-forum.cern.ch/t/cling-kernel-for-jupyter-on-windows-does-not-work/58207/3 "2024-02-19T10:12:56Z")

</div>

I can reproduce the error, will try to figure out what is the problem

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [February 19, 2024, 2:15pm UTC](https://root-forum.cern.ch/t/cling-kernel-for-jupyter-on-windows-does-not-work/58207/4 "2024-02-19T14:15:04Z")

</div>

So I don’t know if this was working on Windows. I know the ROOT notebook works, but never tried cling. Maybe @vvassilev knows how to debug this

---

<div class="post-metadata">

**Author:** ![nickolayl](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/nickolayl/32/35717_2.png) [@nickolayl](https://root-forum.cern.ch/u/nickolayl)\
**Post date:** [February 24, 2024, 9:51am UTC](https://root-forum.cern.ch/t/cling-kernel-for-jupyter-on-windows-does-not-work/58207/5 "2024-02-24T09:51:46Z")

</div>

@bellenot Bertrand, thank you for looking into it. Did you have a chance to look deeper into it? Any advise?

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [February 26, 2024, 7:41am UTC](https://root-forum.cern.ch/t/cling-kernel-for-jupyter-on-windows-does-not-work/58207/6 "2024-02-26T07:41:05Z")

</div>

Not yet, and I was hoping @vvassilev could give advice where to start from…

---

<div class="post-metadata">

**Author:** ![vvassilev](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/v/f0a364/32.png) [@vvassilev](https://root-forum.cern.ch/u/vvassilev)\
**Post date:** [February 26, 2024, 2:11pm UTC](https://root-forum.cern.ch/t/cling-kernel-for-jupyter-on-windows-does-not-work/58207/7 "2024-02-26T14:11:57Z")

</div>

Hi all. Is that cling standalone or xeus-cling?

---

<div class="post-metadata">

**Author:** ![nickolayl](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/nickolayl/32/35717_2.png) [@nickolayl](https://root-forum.cern.ch/u/nickolayl)\
**Post date:** [February 26, 2024, 4:19pm UTC](https://root-forum.cern.ch/t/cling-kernel-for-jupyter-on-windows-does-not-work/58207/8 "2024-02-26T16:19:56Z")

</div>

Hi! This is cling standalone. Thank you for hopping in!

---

<div class="post-metadata">

**Author:** ![vvassilev](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/v/f0a364/32.png) [@vvassilev](https://root-forum.cern.ch/u/vvassilev)\
**Post date:** [February 26, 2024, 4:34pm UTC](https://root-forum.cern.ch/t/cling-kernel-for-jupyter-on-windows-does-not-work/58207/9 "2024-02-26T16:34:45Z")

</div>

AFAIK, the jupyter library in cling needs some glue to connect to the jupyter system. Is that what we are seeing now?

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [March 11, 2024, 4:35pm UTC](https://root-forum.cern.ch/t/cling-kernel-for-jupyter-on-windows-does-not-work/58207/10 "2024-03-11T16:35:34Z")

</div>

Closed on March 11, 2024, 4:35pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
