Skip to content

Installing a User's Copy of the QuickView Family at NERSC

The steps described below follow the same logic as documented on this page, expect that

  • the tools are installed to a different path, /global/cfs/projectdirs/m4359/tools/, which we refer to as ${pathRoot} in the following, and
  • the conda environment is named quickview-env, which we refer to as ${envName} below.

Note: Please use a login node for the installation.

After that, the tools can be used on login nodes or other types of nodes via the same commands/shortcuts.

Create a conda environment

Create a directory for the conda environment needed for installing our tools:

sh
mkdir -p ${pathRoot}/conda-envs

Create an environment inside that directory:

sh
module load conda
conda create --prefix ${pathRoot}/conda-envs/${envName} python=3.13

Activate the environment and install our tools

Activate environment:

sh
conda activate ${pathRoot}/conda-envs/${envName}

Install QuickView:

sh
conda install conda-forge::e3sm-quickview

In the same environment, also install QuickCompare:

sh
conda install conda-forge::e3sm_compareview

Using the installed applications

At this point, the user should be able to use the following commands to launch the individual tools, assuming the conda environment has been activated. (But read the next section if you expect to use the tools often.)

QuickView:

quickview -p 0

QuickCompare:

quickcompare -p 0

Since the conda environment and tools are installed in custom paths, it will be useful to create shortcuts so that the tools can be lauched using very short 1-line commands.

Setup step 1

We can create a script ${pathRoot}/quickview2 with the following contents:

sh
#!/usr/bin/env bash

pathRoot="/global/cfs/projectdirs/m4359/tools/"
envName="quickview-env"

module load conda
conda activate ${pathRoot}/conda-envs/${envName} 
quickview -p 0

And to make the shortcut executable, we do

sh
chmod +x ${pathRoot}/quickview2

Similarily, we create a script${pathRoot}/quickcompare with the following contents:

sh
#!/usr/bin/env bash

pathRoot="/global/cfs/projectdirs/m4359/tools/"
envName="quickview-env"

module load conda
conda activate ${pathRoot}/conda-envs/${envName}
quickcompare -p 0

And to make the shortcut executable, we do

sh
chmod +x ${pathRoot}/quickcompare

Setup step 2

In the .bashrc or .cshrc file in your home directory, add something like

sh
alias quickv='/global/cfs/projectdirs/m4359/tools/quickview2'
alias quickc='/global/cfs/projectdirs/m4359/tools/quickcompare'

Using the tools through shortcuts

After the two setup steps have been completed, the user should be able to launch the tools by simply typing quickv or quickc in a terminal window in the JupyterHub. Again, the same commands can be used regardless of whether the terminal window is connected to a login node or a shared GPU node etc.

Updating the installations

In order to update the tools to the newest available versions on conda-forge you will need to

  • identify the versions you want to update to (see links in the summary table on this page, and then
  • do something like the following after adapting the syntax to your shell and specifying the desired version numbers.
sh
pathRoot="/global/cfs/projectdirs/m4359/tools/"
envName="quickview-env"

quickview_version_new="2.1.1"
quickcomp_version_new="1.3.4"

module load conda
conda activate ${pathRoot}/conda-envs/${envName}

conda install   "e3sm-quickview>=${quickview_version_new}"
conda install "e3sm_compareview>=${quickcomp_version_new}"