- Provide default home directory contents including VS Code Extensions and settings in `/etc/skel/`. Can be copied on first startup using [post start hook](https://z2jh.jupyter.org/en/stable/jupyterhub/customizing/user-environment.html#about-user-storage-and-adding-files-to-it).
- Provide default home directory contents including VS Code Extensions and settings in `/etc/skel/`. Can be copied on first startup using [post start hook](https://z2jh.jupyter.org/en/stable/jupyterhub/customizing/user-environment.html#about-user-storage-and-adding-files-to-it).
## pytorch-gpu
- Based on: `jupyter/scipy-notebook:latest` ([quay.io](https://quay.io/repository/jupyter/scipy-notebook), [src](https://github.com/jupyter/docker-stacks/tree/main/images/scipy-notebook), [doc](https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html#jupyter-scipy-notebook))
- Available as: [`christofkaufmann/pytorch-gpu-notebook:latest`](https://hub.docker.com/repository/docker/christofkaufmann/pytorch-gpu-notebook)
- Features:
- Jupyter enabled
- Contains PyTorch with GPU support (requires nvidia-driver)
- Contains Huggingface packages
- Added VS Code via code-server as web UI and via VS Code CLI for tunnels
- Provide default home directory contents including VS Code Extensions and settings in `/etc/skel/`. Can be copied on first startup using [post start hook](https://z2jh.jupyter.org/en/stable/jupyterhub/customizing/user-environment.html#about-user-storage-and-adding-files-to-it).
## Usage
## Usage
You can use the image from docker hub or build it locally.
You can use the image from docker hub or build it locally.
...
@@ -103,7 +115,7 @@ docker exec -it tf-cpu bash
...
@@ -103,7 +115,7 @@ docker exec -it tf-cpu bash
docker stop tf-cpu # also removes container, because of the --rm parameter on docker run
docker stop tf-cpu # also removes container, because of the --rm parameter on docker run
```
```
And the same for the GPU images (`tensorflow-gpu-with-vscode` and`keras3-gpu`):
And the same for the GPU images (`tensorflow-gpu-with-vscode`,`keras3-gpu`, `pytorch-gpu`):
# NOTE: without --no-update-deps somehow an undefined symbol error in /opt/conda/lib/python3.11/lib-dynload/_sqlite3.cpython-311-x86_64-linux-gnu.so occurs, which crashes jupyter lab.
USER ${NB_UID}
RUN mamba install--yes--no-update-deps\
# umap + hdbscan
'umap-learn' \
'hdbscan' \
# gradio
'gradio' \
# optuna + plotly
'optuna' \
'plotly' \
# optional dependencies for pandas for read_html and to support Parquet files
'lxml' \
'pyarrow' \
'pyogrio' \
# geopandas
'geopandas' \
'pysal' \
# networkx + pyvis + netgraph
'networkx' \
'pyvis' \
'netgraph' \
# dependencies for jupyter-vscode-proxy (?)
'rfc3339-validator' \
'rfc3986-validator' \
'uri-template' \
'fqdn' \
'webcolors' \
'isoduration' \
'jsonpointer' \
# provide a way for lecturers to share code
'nbgitpuller' \
# monitor GPUs in terminal
'nvtop' \
# integration of VS Code in JupyterLab
'jupyter-server-proxy' \
'jupyter-vscode-proxy' \
# some improvements of jupyterlab
'jupyterlab_execute_time' \
'jupyter-archive' \
'jupyter-resource-usage' \
# install opencv via fastai, headless version not available in conda-forge
// Whether the user agrees the access to external web services and understands extensions may introduce security risks or contain malicious code that runs on his machine.
"disclaimed": true,
// Enabled Status
// Enables extension manager.
// WARNING: installing untrusted extensions may be unsafe.