Skip to content
Snippets Groups Projects
  • Enric Tejedor Saavedra's avatar
    7b605073
    [ROOT-9685] Run the Jupyter ROOT C++ kernel with ROOT's Python version · 7b605073
    Enric Tejedor Saavedra authored
    We need to make sure the ROOT C++ kernel of Jupyter runs with the
    same Python version that ROOT was built with.
    
    Since running the kernel with a particular Python installation
    cannot be enforced by the user by setting the $PATH variable
    (Jupyter ignores that variable and picks Python from the
    system), we need to enforce it from the kernel file.
    
    We can't define a full path to the right Python binary in the
    kernel.json file because that path could be different in the machine
    where ROOT is built and the machine where the C++ kernel runs.
    The best we can do is include the major and minor version in
    the kernel.json file, so that we make sure the kernel is not
    executed with an incompatible version, which would likely lead
    to a crash.
    7b605073
    History
    [ROOT-9685] Run the Jupyter ROOT C++ kernel with ROOT's Python version
    Enric Tejedor Saavedra authored
    We need to make sure the ROOT C++ kernel of Jupyter runs with the
    same Python version that ROOT was built with.
    
    Since running the kernel with a particular Python installation
    cannot be enforced by the user by setting the $PATH variable
    (Jupyter ignores that variable and picks Python from the
    system), we need to enforce it from the kernel file.
    
    We can't define a full path to the right Python binary in the
    kernel.json file because that path could be different in the machine
    where ROOT is built and the machine where the C++ kernel runs.
    The best we can do is include the major and minor version in
    the kernel.json file, so that we make sure the kernel is not
    executed with an incompatible version, which would likely lead
    to a crash.