Skip to content

Commit d4b474c

Browse files
author
Kin NG
committed
update jetstream build
1 parent ae68620 commit d4b474c

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

hands-on/session II/Materials/build_jetstream_environment.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,16 @@ python -m pip install -e "$OPENVISUSPY_DIR" >/dev/null
169169
step "7/7" "Install Jupyter kernel + extras"
170170

171171
# keep these visible enough to diagnose, but not too noisy
172-
conda install -c conda-forge -y jupyterlab-git=0.52.0 >/dev/null
173-
174-
python -m pip install "ipykernel==6.29.2" >/dev/null
175-
python -m pip install jupyter-server-mathjax >/dev/null
172+
ENV_BIN_DIR="$CONDA_PREFIX/bin"
176173

177174
python -m ipykernel install --user \
178175
--name "$KERNEL_NAME" \
179-
--display-name "$KERNEL_DISPLAY" >/dev/null
176+
--display-name "$KERNEL_DISPLAY" \
177+
--env PATH "$ENV_BIN_DIR:$OPENVISUSPY_SRC:$PATH" \
178+
--env LD_LIBRARY_PATH "$CONDA_PREFIX/lib:$CONDA_PREFIX/lib/gdalplugins" \
179+
--env PROJ_LIB "$CONDA_PREFIX/share/proj" \
180+
--env GDAL_DATA "$CONDA_PREFIX/share/gdal" \
181+
--env PROJ_NETWORK "ON"
180182

181183
print_separated_message \
182184
"DONE" \

hands-on/session II/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,8 @@ module load miniforge
147147
</li>
148148

149149
<li>
150-
Activate the environment and start Jupyter Lab:
151-
<pre><code>conda activate NSDF-Tutorial
152-
cd ..
150+
Start Jupyter Lab:
151+
<pre><code>cd ..
153152
jupyter-ip.sh</code></pre>
154153
</li>
155154

@@ -164,9 +163,9 @@ jupyter-ip.sh</code></pre>
164163
<h4>Starting the Environment (After Installation)</h4>
165164
<ol>
166165
<li>
167-
Load Conda and activate the environment:
166+
Load Conda:
168167
<pre><code>module load miniforge
169-
conda activate NSDF-Tutorial</code></pre>
168+
</code></pre>
170169
</li>
171170

172171
<li>

0 commit comments

Comments
 (0)