Configure Anaconda Environment for installing Jupyter Notebook to use PyROOT on Ubuntu 24.04

 

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.

Here, I am assuming that the anaconda is already installed on your system; if not, then follow the instructions given in this reference [1].

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 instructi-

ons given on Stack Exchange.

03. Launch Jupyter Notebook:

$ root --notebook


Note: You must 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