| ... | ... | @@ -124,6 +124,8 @@ systemctl status JupyterLab.service |
|
|
|
|
|
|
|
## Spätere Installation weiterer Python-Bibliotheken
|
|
|
|
|
|
|
|
### Neuinstallation
|
|
|
|
|
|
|
|
```
|
|
|
|
ssh root@a73435
|
|
|
|
...
|
| ... | ... | @@ -137,3 +139,42 @@ systemctl restart JupyterLab.service |
|
|
|
#
|
|
|
|
exit
|
|
|
|
```
|
|
|
|
|
|
|
|
### Update eines bereits installierten Paketes
|
|
|
|
|
|
|
|
```
|
|
|
|
ssh root@a73435
|
|
|
|
...
|
|
|
|
cd /usr/local/share/JupyterLab
|
|
|
|
source ./bin/activate
|
|
|
|
pip3 install <package_name> --upgrade
|
|
|
|
deactivate
|
|
|
|
#
|
|
|
|
chown -R ipynb.ipynb /usr/local/share/JupyterLab
|
|
|
|
systemctl restart JupyterLab.service
|
|
|
|
#
|
|
|
|
exit
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
### Update sämtlicher installierter Pakete einschließlich »Jupyter Lab« selbst
|
|
|
|
|
|
|
|
```
|
|
|
|
ssh root@a73435
|
|
|
|
...
|
|
|
|
cd /usr/local/share/JupyterLab
|
|
|
|
source ./bin/activate
|
|
|
|
for i in $(pip3 list -o | awk 'NR > 2 {print $1}'); do pip3 install --upgrade $i; done
|
|
|
|
deactivate
|
|
|
|
#
|
|
|
|
chown -R ipynb.ipynb /usr/local/share/JupyterLab
|
|
|
|
systemctl restart JupyterLab.service
|
|
|
|
#
|
|
|
|
exit
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|