-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.sh
52 lines (35 loc) · 1.09 KB
/
setup.sh
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env bash
which python
python --version
echo "-------------------------------------"
echo "Install virtual env ./env"
echo "-------------------------------------"
# force ingore system site packages
export PYTHONPATH=$ROOTSYS/lib
python -m venv ./env
source ./env/bin/activate
pip list
echo "-------------------------------------"
echo "Install local jupyterlab"
echo "-------------------------------------"
pip install --upgrade pip
pip install wheel
pip install jupyterlab ipywidgets
# pip install -r requirements.txt
echo "-------------------------------------"
echo "Package list"
echo "-------------------------------------"
pip freeze
echo "-------------------------------------"
echo "Final virtual env checks:"
echo "-------------------------------------"
which python
python --version
which ipython
which jupyter
jupyter --version
jupyter kernelspec list
echo "-------------------------------------"
echo "Done. To start jupyterlab server locally for developing the plots:"
echo "source ./env/bin/activate && jupyter lab"
echo "-------------------------------------"