# Using C++ in Jupyterlab install root from root cern. https://root.cern/install/all_releases/ In the following I assume that root installs into: C:\root_v6.30.04 you might have to replace it accordingly. add the folder C:\root_v6.30.04\bin to your system path variable: https://learn.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/ee537574(v=office.14) get python interpreter path inside python with: ```python import sys print(sys.execuble) ``) first edit C:\root_v6.30.04\etc\notebook\kernels\root\kernel.json replace the version according to your installation! ```json { "language": "c++", "display_name": "ROOT C++", "argv": [ "C:\\Users\\admin\\AppData\\Roaming\\jupyterlab-desktop\\jlab_server\\python.exe", "-m", "JupyROOT.kernel.rootkernel", "-f", "{connection_file}" ], "env": { "CD": "c:\\root_v6.30.04\\bin", "PYTHONPATH": "c:\\root_v6.30.04\\bin" } } ``` open in jupyterlab the folder pane and select the + button and open a terminal there type: ``` jupyter kernelspec install C:\root_v6.30.04\etc\notebook\kernels\root\ pip install metakernel ``` if you want to use the webbrowser then do: ``` pip install noteook root --notebookk ``` try commands from https://root.cern.ch/notebooks/HowTos/HowTo_ROOT-Notebooks.html but I set default to c++, so you need to use %%python when you do python code.``