Skip to content

Commit 3037841

Browse files
committed
docs(NERSC): add information for jupyter setup at NERSC
1 parent 862f3b7 commit 3037841

File tree

2 files changed

+74
-16
lines changed

2 files changed

+74
-16
lines changed

docs/setup/for_app_developers.md

Lines changed: 52 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
# Install and Launch for App Developers
22

3-
At version 1.0, QuickView is expected to be installed and used from
4-
a personal computer with the data files also being local.
5-
Future versions will support the server-client model allowing access
6-
to remote data.
3+
At version 1.0, QuickView is expected to be installed and used from a personal
4+
computer with the data files also being local. Future versions will support the
5+
server-client model allowing access to remote data.
76

8-
Releases so far have focused on macOS. Support for
9-
more systems will be added in the near [future](../future.md).
7+
Releases so far have focused on macOS. Support for more systems will be added in
8+
the near [future](../future.md).
9+
10+
---
1011

11-
----
1212
## Clone the repo
1313

1414
```
1515
git clone https://github.com/ayenpure/QuickView.git
1616
cd QuickView
1717
```
1818

19-
----
19+
---
20+
2021
## Install basic requirements
2122

2223
```
@@ -28,20 +29,24 @@ conda activate quickview
2829
pip install -e .
2930
```
3031

31-
----
32+
---
33+
3234
## Launch the app from command line
3335

3436
To launch the EAM QuickView GUI in its dedicated window, use
37+
3538
```
3639
quickview -data /path/to/your/data.nc --con /path/to/connectivity.nc
3740
```
3841

3942
To launch server only (no browser popup), use
43+
4044
```
4145
quickview -df /path/to/your/data.nc -cf /path/to/connectivity.nc --server
4246
```
4347

44-
----
48+
---
49+
4550
## Development utilities
4651

4752
```
@@ -50,7 +55,42 @@ ruff check quickview/
5055
5156
# Run tests
5257
python -m quickview.app --help
58+
```
59+
60+
---
61+
62+
## NERSC setup
63+
64+
First you need to create a conda environment that is shared.
65+
66+
```
67+
mkdir -p /global/common/software/m4359/conda-envs
68+
69+
module load conda
70+
conda create --prefix /global/common/software/m4359/conda-envs/e3sm-quickview python=3.13
71+
conda activate /global/common/software/m4359/conda-envs/e3sm-quickview
72+
conda install e3sm-quickview
73+
```
74+
75+
Then you can create an application shortcut by editing the file
76+
`/global/common/software/m4359/quickview` with the following content
77+
78+
```
79+
#!/usr/bin/env bash
80+
81+
module load conda
82+
conda activate /global/common/software/m4359/conda-envs/e3sm-quickview
83+
quickview -p 0
84+
```
85+
86+
Then you can make it executable
87+
`chmod +x /global/common/software/m4359/quickview`
88+
89+
If you want to update the application, you can run the following
90+
91+
```
92+
module load conda
93+
conda activate /global/common/software/m4359/conda-envs/e3sm-quickview
5394
54-
# Bump version
55-
bumpversion patch
95+
conda install "e3sm-quickview>=1.3.3" # <--- Update version number
5696
```

docs/setup/for_end_users.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Install and Launch for End Users
1+
## Install and Launch for End Users
22

33
At version 1.0, QuickView is expected to be installed and used from a personal
44
computer with the data files also being local. Future versions will support the
@@ -9,7 +9,7 @@ the near [future](../future.md).
99

1010
---
1111

12-
# Install
12+
## Install
1313

1414
For end users, pre-built binaries are available and can be installed with just a
1515
few steps, as described below.
@@ -45,7 +45,7 @@ few steps, as described below.
4545

4646
---
4747

48-
# Launch
48+
## Launch
4949

5050
To launch the EAM QuickView GUI, simply double-click the app icon in the
5151
Applications folder.
@@ -58,7 +58,7 @@ Applications folder.
5858

5959
---
6060

61-
# Within a conda environment
61+
## Within a conda environment
6262

6363
You can install `e3sm-quickview` directly in your conda environment via this
6464
simple command `conda install -c conda-forge e3sm-quickview`. But you can also
@@ -84,3 +84,21 @@ Common options are as follow:
8484
also use `0` as a way to let the system pick an available port automatically.
8585
- `--host 0.0.0.0` to allow external connection on Linux.
8686
- `--help` to list all the options.
87+
88+
## At NERSC
89+
90+
- First [login to NERSC jupyter](https://jupyter.nersc.gov/hub/login)
91+
- Start a sessing inside JupyterHub
92+
- Open a terminal and run the following commands
93+
94+
```
95+
# Go to the directory that you want to browse
96+
cd /path/to/your/data
97+
98+
# Run the application
99+
/global/common/software/m4359/quickview
100+
```
101+
102+
The application will start and will print the URL for you to connect. You can
103+
simply click on the URL in the terminal to open a new browser tab with the
104+
application in full screen.

0 commit comments

Comments
 (0)