Hello Readers, Today we shall learn to enable Jupyter Notebook using CERN-ROOT on Ubuntu 20.04/22.04 or any version, or on cluster computing. This method doesn't require admin privileges to install and configure the Anaconda environment to use PyROOT without interfering with other packages installed in a different Anaconda environment.
Let's do the Job.
Follow the following instructions:
01. Create an Anaconda environment to build CERN-ROOT over the required Python version.
$ conda create -c conda-forge --name my_env_name root python=3.9
02. Activate this conda environment:
$ conda activate my_env_name
Note: To hide the environment name from the terminal, follow the instructions given here.
03. Launch Jupyter Notebook:
$ root --notebook
04. Confirm the correct installation by importing ROOT:
[import ROOT]
It should be executed without any error.
Note: You need to install Python libraries in this environment to import any library in your code.
HAPPY LEARNING!!
REFERENCES:
01. https://docs.anaconda.com/free/anaconda/install/linux/
02. https://root-forum.cern.ch/t/installing-root-with-conda/39787