# Let jupyter C++ kernel pick up \`.rootlogon.C\` automatically

**URL:** <https://root-forum.cern.ch/t/let-jupyter-c-kernel-pick-up-rootlogon-c-automatically/62535>\
**Category:** ROOT\
**Tags:** jupyter\
**Created:** [December 24, 2024, 9:07am UTC](https://root-forum.cern.ch/t/let-jupyter-c-kernel-pick-up-rootlogon-c-automatically/62535 "2024-12-24T09:07:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CHN-beta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/chn-beta/32/38075_2.png) [@CHN-beta](https://root-forum.cern.ch/u/CHN-beta)\
**Post date:** [December 24, 2024, 9:07am UTC](https://root-forum.cern.ch/t/let-jupyter-c-kernel-pick-up-rootlogon-c-automatically/62535/1 "2024-12-24T09:07:05Z")

</div>

In current last version of ROOT, jupyter C++ kernel does not pick up `~/.rootlogon.C` automatically. Users have to load it manually in the first block:

```auto
gROOT->LoadMacro("/home/chn/.rootlogon.C");

```

Are there any other files that are automatically picked up by ROOT C++ Interpreter? I want to specify additional include path and libraries to the kernel.

I know this issue has been discussed several years ago ([here](https://root-forum.cern.ch/t/rootlogon-c-not-picked-up-by-jupyter-c-notebooks/36562/3)), where it says:

> The reason is that the ROOT C++ kernel is actually implemented in Python, which takes what you write in the cell and forwards it as a string to the ROOT interpreter for execution.

Is there any specific reason that making the C++ kernel not loading `.rootlogon.C`? I want to first hack the source code to make it work on my machine.

_ROOT Version:_ 6.34.0  
_Platform:_ Linux  
_Compiler:_ GCC 13

* * *

---

<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:** [December 25, 2024, 10:38am UTC](https://root-forum.cern.ch/t/let-jupyter-c-kernel-pick-up-rootlogon-c-automatically/62535/2 "2024-12-25T10:38:14Z")

</div>

Hi,

Apologies if things did not work out of the box for you: it won’t be much of a issue to implement the automatic reading of the `rootlogon`. Could you please file an issue on our tracker?

Cheers,  
Danilo

---

<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:** [January 8, 2025, 10:38am UTC](https://root-forum.cern.ch/t/let-jupyter-c-kernel-pick-up-rootlogon-c-automatically/62535/3 "2025-01-08T10:38:51Z")

</div>

Closed on January 8, 2025, 10:38am UTC

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