Skip to content

Commit efd2089

Browse files
committed
website: add users_installation.md
1 parent 7009c82 commit efd2089

File tree

2 files changed

+117
-2
lines changed

2 files changed

+117
-2
lines changed

docs/.vitepress/config.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ export default defineConfig({
2828
{
2929
text: "At NERSC",
3030
items: [
31-
{ text: "Quickstart", link: "/nersc/index" },
32-
{ text: "Installation", link: "/nersc/installation_at_nersc" },
31+
{ text: "Quickstart", link: "/nersc/index" },
32+
{ text: "Public Installation", link: "/nersc/installation_at_nersc" },
33+
{ text: "User's Installation", link: "/nersc/users_installation" },
3334
],
3435
},
3536
{

docs/nersc/users_installation.md

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
# Installing your own copy of the QuickView tool family at NERSC
2+
3+
The steps described below follow the same logic as documented on
4+
[this page](./installation_at_nersc.md),
5+
expect that
6+
7+
- the tools are installed to a different path, `/global/cfs/projectdirs/m4359/tools/`,
8+
which we refer to as `${pathRoot}` in the following, and
9+
- the environment is named `quickview-env`,
10+
which we refer to as `${envName}`
11+
12+
## Create a `conda` environment
13+
14+
Create a directory for the conda environment:
15+
```sh
16+
mkdir -p ${pathRoot}/conda-envs
17+
```
18+
19+
Create an environment inside that directory:
20+
```sh
21+
module load conda
22+
conda create --prefix ${pathRoot}/conda-envs/${envName} python=3.13
23+
```
24+
25+
## Activate the environment and install tools in the family
26+
27+
Install QuickView
28+
```sh
29+
conda activate ${pathRoot}/conda-envs/${envName}
30+
conda install conda-forge::e3sm-quickview
31+
```
32+
In the same environment, also install QuickCompare:
33+
```sh
34+
conda install conda-forge::e3sm_compareview
35+
```
36+
37+
## Using the installed apps
38+
39+
At this point, the user should be able to use the following commands to launch the individual tools:
40+
41+
QuickView:
42+
```
43+
quickview -p 0
44+
```
45+
QuickCompare:
46+
```
47+
quickcompare -p 0
48+
```
49+
50+
## Recommended: executable Shortcuts
51+
52+
Since the conda environment and tools are installed in custom paths, it will
53+
be useful to create shortcuts so that the apps can be lauched using short commands.
54+
55+
### Set up, step 1
56+
57+
We can create a script `${pathRoot}/quickview` with the following content
58+
```sh
59+
#!/usr/bin/env bash
60+
61+
pathRoot="/global/cfs/projectdirs/m4359/tools/"
62+
envName="quickview-env"
63+
64+
module load conda
65+
conda activate ${pathRoot}/conda-envs/${envName}
66+
quickview -p 0 --fast
67+
```
68+
And to make the shortcut executable, we do
69+
```
70+
chmod +x ${pathRoot}/quickview
71+
```
72+
73+
Similarily, we create a script`${pathRoot}/quickcompare` with the following content
74+
```sh
75+
#!/usr/bin/env bash
76+
77+
pathRoot="/global/cfs/projectdirs/m4359/tools/"
78+
envName="quickview-env"
79+
80+
module load conda
81+
conda activate ${pathRoot}/conda-envs/${envName}
82+
quickcompare -p 0
83+
```
84+
And to make the shortcut executable, we do
85+
```
86+
chmod +x ${pathRoot}/quickcompare
87+
```
88+
89+
### Set up, step 2
90+
91+
In the `.bashrc` or `.cshrc` file in your home directory, add
92+
```
93+
alias quickv='/global/cfs/projectdirs/m4359/tools/quickview'
94+
alias quickc='/global/cfs/projectdirs/m4359/tools/quickcompare'
95+
```
96+
### Using the apps through shortcuts
97+
98+
After the two setup steps have been completed, the user should be able
99+
to launch the tools by symply typing `quickv` or `quickc`
100+
in a terminal window in the JupyterHub.
101+
Again, the same commands can be used regardless of whether the terminal
102+
window is connected to a login node or a shared GPU node etc.
103+
104+
105+
## Updating an application
106+
107+
In order to update a given application you will need to find the version you want to install and then run something like:
108+
109+
```sh
110+
module load conda
111+
conda activate /global/common/software/m4359/conda-envs/e3sm-quickview
112+
113+
conda install "e3sm-quickview>=1.3.3" # <== fix version
114+
```

0 commit comments

Comments
 (0)