This snap is intended to provide an easy-to-install package of the ROOT framework for the home user. ROOT is built using the C++17 standard, and it comes bundled along with Python 3.8/PyROOT and Jupyter Notebook / JupyROOT. NumPy, SciPy, Pandas, Matplotlib, Scikit-Learn and Tensorflow/Keras are included with the Python environments.
Snaps are container packages for easy application deployment, designed to be consistent and reliable across different host distributions. They additionally impose some strong sandboxing for security. One caveat of this sandboxing is that this package can only read/write to your $HOME directory, or via specific network protocols. It is highly advised that you place all your data files in your $HOME directory to be accessible.
Because snaps are containers and don't affect the host system, using PyROOT with import ROOT will not work in a system Python shell. Users are encouraged to use the command pyroot to access the containers' Python shell, where import ROOT would become available. Scripts can be passed to pyroot to be executed in PyROOTs context, E.G, pyroot -i $(root-config --tutdir)/pyroot/fillrandom.py, or put in the scripts shebang. E.G #!/snap/bin/pyroot
JupyROOT can be accessed by running root --notebook.
For user convenience, application entries for ROOT and PyROOT will be placed into the systems start menu by default.
For versions of Ubuntu between 14.04 LTS (Trusty Tahr) and 15.10 (Wily Werewolf), as well as Ubuntu flavours that don’t include snap by default, snap can be installed from the Ubuntu Software Centre by searching for snapd.
Alternatively, snapd can be installed from the command line:
sudo apt update
sudo apt install snapd
Either log out and back in again, or restart your system, to ensure snap’s paths are updated correctly.
Install ROOT Framework
To install ROOT Framework, simply use the following command: