Installation¶
Linux Debian/Ubuntu/Mint¶
Thanks to the “Data Reduction and Analysis Group at Synchrotron SOLEIL”, NavARP is available for linux as Debian/Ubuntu/Mint package since the version 1.6.0, and can be installed with:
apt install python3-navarp
Any operating system using Miniforge Python distribution¶
NavARP is a python package requiring different python libraries for working correctly. Miniforge is a lightweight distribution of Conda, proving a minimal environment with Python, Conda, pip, and the Conda-Forge channel preconfigured. It is an alternative to Anaconda/Miniconda, that it is recommended after the new restrictive license terms of Anaconda/Miniconda. Download the last version of Miniforge from https://conda-forge.org/download/ . Then install it considering the following recommendations: 1. do it without administrator privileges (select “Just Me” during the installation process), as the other option can make installing packages more difficult later on; 2. tick “Add Miniforge3 to my Path”, otherwise Conda would not work from any Terminal Window.
Command line interface¶
After Miniforge installation, few commands must be run in the proper command line interface before being able to use the NavARP package, and this command line interface depends on the operating system.
The command line interface corresponds to the terminal on Unix-like platforms (macOS or Linux) and to the Miniforge Prompt on Windows (which is accessible from the Start menu after searching for Miniforge Prompt).
Regarding macOS, it may occur that following Miniforge installation, the default
Python version available via the terminal is still the one from macOS
(not Miniforge-related). To Verify it is not the case check if the command line now
begins with (base)
. If it is not the case, type and execute conda activate
;
(base)
ought to follow.
Prepare the correct python environment¶
The commands to run in the command line interface are for preparing a dedicated python
environment for NavARP. In the following procedure this python environment will be called navarp-env
.
So to create this enviroment run the following command:
conda create --name navarp-env numpy scipy matplotlib colorcet h5py pyqt=5 jupyter ipympl pyyaml click igor2
Then activate the created environment using the following command:
conda activate navarp-env