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

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:

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), 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


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

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