Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Jupyter/ROOT Containers | ||||||||
Line: 12 to 12 | ||||||||
| ||||||||
Added: | ||||||||
> > | AnacondaAnaconda is a software manager that allows you download and execute packages in your home directory. If you use the Nevis Linux cluster, then you should consider using environment modules over Anaconda, if for no other reason than to save disk space (see below). But if you're on a different system, or the Nevis environment modules don't offer the package or version you're looking for, Anaconda is a better choice. All the Nevis Linux cluster systems running CentOS 7 have conda installed. If you're not at Nevis, you can also separately install Anaconda![]() ![]() conda config --add channels conda-forge conda config --set channel_priority strictTo install Jupyter/ROOT: conda create --name jupyter-pyroot jupyter python rootNote that the name jupyter-pyroot is arbitrary; you can use any name for the conda environment ![]() ![]() ![]() conda install --name jupyter-pyroot jupyterlab numpy scipy matplotlibYour working group may use additional packages. For example, the VERITAS group at Nevis might want to use (in addition to the above): conda install --name jupyter-pyroot astropy gammapyYou only have to go through the above steps once to define an environment (e.g., jupyter-pyroot). Afterwards, once per login session, it’s necessary to activate it: conda activate jupyter-pyrootOnce activated, you should be able to run ROOT by simply typing: rootYou can run jupyter with: jupyter notebookor to enable remote access (read all the instructions at the bottom of the Jupyter page): jupyter notebook --no-browser --port=XXXX Warnings
| |||||||
Docker | ||||||||
Changed: | ||||||||
< < | Docker![]() | |||||||
> > | While Anaconda is an environment-level container, Docker![]() | |||||||
The first step is to install Docker. For Mac and Windows systems, use Docker Desktop![]() ![]() | ||||||||
Line: 132 to 203 | ||||||||
Note that while you can change the mapping of the /work directory within the container (see above), you can't change Jupyter's binding to port 8080. This might be a problem if you're running on a shared computer system and more than one user wants to run this container at the same time. | ||||||||
Deleted: | ||||||||
< < | AnacondaDocker and Singularity are OS-level containers (in contrast to emulators like VMware, which are machine-level containers). Anaconda![]() ![]() conda create --name jupyter-pyroot jupyter python rootHowever, I've found this method to be unreliable. Typically there's no problem with jupyter or python, but installing ROOT via Anaconda is hit-or-miss. Assuming you succeed, you can run the jupyter command as described near the bottom of the notebook server page; e.g.,:
jupyter notebookor to enable remote access (again, read all the instructions at the bottom of the Jupyter page): jupyter notebook --no-browser --port=XXXX | |||||||
The hard wayIf all other methods fail, you can embark on the adventure of compiling these packages on your own. You can install Python![]() ![]() ![]() |