-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
executable file
·27 lines (25 loc) · 1.08 KB
/
install.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
#This guide assumes you have a Python 3 interpreter and pip (pypi) on your system. If not, install from your distribution's package management system.
# We install all required Python packages in a virtual environment, so packages do not interfere with the systemwide installation.
# Install virtualenv locally, for this user
pip3 install --user virtualenv
export PATH=$PATH:~/.local/bin
# Create virtual environment
python3 -m venv env
# Activate virtual environment
source env/bin/activate
# All required packages are instlled via pip in the virtual environment
pip3 install wheel
pip3 install -r requirements.txt
# Re-install old tornado version, to fix bug
pip3 uninstall -y tornado
pip3 install tornado==5.1.1.
# Jupyter Notebook extensions are set up
jupyter contrib nbextension install --sys-prefix
jupyter nbextensions_configurator enable --sys-prefix
# Collapsible headings extension is enabled
jupyter nbextension enable collapsible_headings/main
# Kernel is configured to work with the virtual environment
python3 -m ipykernel install --user --name env
# Compile documentation
cd doc
make html