| ... | ... | @@ -13,6 +13,14 @@ zypper in --recommends apache2 inkscape python311-base pandoc |
|
|
|
|
|
|
|
Anmerkung: Mit Pythonversionen <= 3.6 gab es Probleme.
|
|
|
|
|
|
|
|
## Anlegen des Nutzers `ipynb` mit home-Verzeichnis
|
|
|
|
|
|
|
|
```
|
|
|
|
useradd --create-home --system --user-group ipynb
|
|
|
|
mkdir /home/ipynb/notebooks
|
|
|
|
chown -R ipynb.ipynb /home/ipynb
|
|
|
|
```
|
|
|
|
|
|
|
|
## Apache-Server als Proxy einrichten.
|
|
|
|
|
|
|
|
Im Verzeichnis `/etc/apache2/vhosts.d` ist die Datei `jupyterlab.conf` mit folgendem Inhalt zu erstellen:
|
| ... | ... | @@ -72,7 +80,7 @@ cd JupyterLab |
|
|
|
source ./bin/activate
|
|
|
|
python3 -m pip install --upgrade pip
|
|
|
|
pip3 install jupyterlab nbconvert
|
|
|
|
# Zusätzliche Nutzer-Bibliotheken:
|
|
|
|
# Zusätzliche Nutzer-Bibliotheken (je nach Wunsch):
|
|
|
|
pip3 install matplotlib statistics datetime numpy sympy pandas couchdb
|
|
|
|
```
|
|
|
|
|
| ... | ... | @@ -107,11 +115,9 @@ zu |
|
|
|
|
|
|
|
geändert werden.
|
|
|
|
|
|
|
|
### Erzeugen einer Systemd-Service-Datei
|
|
|
|
### Erzeugen der Systemd-Service-Datei
|
|
|
|
|
|
|
|
```
|
|
|
|
deactivate
|
|
|
|
|
|
|
|
cat <<EOF > JupyterLab.service
|
|
|
|
[Unit]
|
|
|
|
Description=JupyterLab Service
|
| ... | ... | @@ -165,7 +171,7 @@ systemctl restart JupyterLab.service |
|
|
|
exit
|
|
|
|
```
|
|
|
|
|
|
|
|
### Update eines bereits installierten Paketes
|
|
|
|
### Update einer bereits installierten Python-Bibliothek
|
|
|
|
|
|
|
|
```
|
|
|
|
ssh root@a73435
|
| ... | ... | @@ -182,7 +188,7 @@ exit |
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
### Update sämtlicher installierter Pakete einschließlich »Jupyter Lab« selbst
|
|
|
|
### Update sämtlicher Python-Bibliotheken einschließlich »JupyterLab« selbst
|
|
|
|
|
|
|
|
```
|
|
|
|
ssh root@a73435
|
| ... | ... | |
| ... | ... | |