-
Notifications
You must be signed in to change notification settings - Fork 0
/
st.cmd
executable file
·26 lines (18 loc) · 927 Bytes
/
st.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
export PATH=/opt/conda/bin/:$PATH
export USER=xf17id1
export HOME=/epics/iocs/notebook
export SHELL=bash
. /etc/profile.d/epics.sh
log_dir="/var/log/jupyter/"
jupyter_log="$log_dir/jupyter-amx_$(date "+%F_%H-%M-%S").log"
source /opt/conda/etc/profile.d/conda.sh
# conda activate /opt/conda_envs/collection-2019-3.0-fmx
conda activate /nsls2/conda/envs/2022-2.0-py39
conda env list
###############################################################################
# DAMA note (July 10, 2019): the corresponding kernel file is defined in #
# /usr/share/jupyter/kernels-available/collection-2019-3.0/kernel.json, and #
# symlinked to /usr/share/jupyter/kernels/collection-2019-3.0/kernel.json #
###############################################################################
jupyter lab --no-browser --notebook-dir=/epics/iocs/notebook/notebooks/ --ip=0.0.0.0 --port=17000 --debug > $jupyter_log 2>&1