| ... | @@ -226,7 +226,7 @@ Ausgehend von Hinweisen im Netz, sollte die virtuellen Python-Umgebung auf |
... | @@ -226,7 +226,7 @@ Ausgehend von Hinweisen im Netz, sollte die virtuellen Python-Umgebung auf |
|
|
erfordert:
|
|
erfordert:
|
|
|
|
|
|
|
|
```
|
|
```
|
|
|
zypper in python39 python39-base python39-pip
|
|
zypper in python3.11 python3.11-base python3.11-pip
|
|
|
zypper in pandoc
|
|
zypper in pandoc
|
|
|
```
|
|
```
|
|
|
|
|
|
| ... | @@ -234,7 +234,7 @@ Als nächstes wird unterhalb von `/usr/local/share/` die virtuelle Python-Umgebu |
... | @@ -234,7 +234,7 @@ Als nächstes wird unterhalb von `/usr/local/share/` die virtuelle Python-Umgebu |
|
|
|
|
|
|
|
```
|
|
```
|
|
|
cd /usr/local/share/
|
|
cd /usr/local/share/
|
|
|
/usr/bin/python3.9 -m venv JupyterLab
|
|
/usr/bin/python3.11 -m venv JupyterLab
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
Die eigentliche Installation von »Jupyter Lab« erfordert nun die Aktivierung
|
|
Die eigentliche Installation von »Jupyter Lab« erfordert nun die Aktivierung
|
| ... | @@ -253,7 +253,7 @@ gespeichert. Voraussetzung für ihre Wirksamkeit ist der activate-Aufruf. |
... | @@ -253,7 +253,7 @@ gespeichert. Voraussetzung für ihre Wirksamkeit ist der activate-Aufruf. |
|
|
# pip aktualisieren
|
|
# pip aktualisieren
|
|
|
python3 -m pip install --upgrade pip
|
|
python3 -m pip install --upgrade pip
|
|
|
# Jupyter Lab
|
|
# Jupyter Lab
|
|
|
pip3 install ipykernel jupyterlab nbconvert jupyter_contrib_nbextensions
|
|
pip3 install jupyterlab
|
|
|
# Zusätzliche Nutzer-Bibliotheken
|
|
# Zusätzliche Nutzer-Bibliotheken
|
|
|
pip3 install matplotlib statistics datetime numpy pandas couchdb
|
|
pip3 install matplotlib statistics datetime numpy pandas couchdb
|
|
|
deactivate
|
|
deactivate
|
| ... | @@ -271,8 +271,8 @@ Type=simple |
... | @@ -271,8 +271,8 @@ Type=simple |
|
|
WorkingDirectory=/usr/local/share/JupyterLab
|
|
WorkingDirectory=/usr/local/share/JupyterLab
|
|
|
EnvironmentFile=-/etc/environment
|
|
EnvironmentFile=-/etc/environment
|
|
|
ExecStart=/bin/bash -lc 'source ./bin/activate ; \
|
|
ExecStart=/bin/bash -lc 'source ./bin/activate ; \
|
|
|
jupyter lab --notebook-dir=/home/ipynb/notebooks \
|
|
jupyter lab --notebook-dir=/home/ipynb/notebooks --no-browser \
|
|
|
--no-browser --ServerApp.allow_origin="http://127.0.0.1:82"'
|
|
--ServerApp.allow_origin="http://127.0.0.1:82"'
|
|
|
User=ipynb
|
|
User=ipynb
|
|
|
Group=ipynb
|
|
Group=ipynb
|
|
|
Restart=on-failure
|
|
Restart=on-failure
|
| ... | @@ -321,14 +321,16 @@ exit |
... | @@ -321,14 +321,16 @@ exit |
|
|
|
|
|
|
|
|
|
|
|
|
=========== 2023-03-30 ==============
|
|
=========== 2023-03-30 ==============
|
|
|
=========== 2023-08-16 ==============
|
|
=========== 2023-09-06 ==============
|
|
|
|
|
|
|
|
Update aller veralteten Komponenten:
|
|
Update aller veralteten Komponenten:
|
|
|
|
|
|
|
|
```
|
|
```
|
|
|
cd /usr/local/share/JupyterLab
|
|
cd /usr/local/share/JupyterLab
|
|
|
source ./bin/activate
|
|
source ./bin/activate
|
|
|
pip3 install -U `pip list --outdated | awk 'NR>2 {print $1}'`
|
|
# Der Fehler "You must give at least one requirement ..." meint,
|
|
|
|
# dass keine Updates erforderlich sind.
|
|
|
|
pip3 install -U `pip3 list --outdated | awk 'NR>2 {print $1}'`
|
|
|
chown -R ipynb.ipynb /usr/local/share/JupyterLab
|
|
chown -R ipynb.ipynb /usr/local/share/JupyterLab
|
|
|
systemctl restart JupyterLab.service
|
|
systemctl restart JupyterLab.service
|
|
|
|
|
|
| ... | |
... | |
| ... | | ... | |