Skip to content

Commit 2a37715

Browse files
committed
Update README
1 parent 163acd4 commit 2a37715

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,18 +84,30 @@ jupyter lab
8484

8585
3. Open PowerShell: Once Docker Desktop is installed, open PowerShell on your Windows machine. You can do this by pressing the "Windows" key and typing "PowerShell" in the search bar.
8686

87-
4. Pull the Docker image: In PowerShell, run the following command to pull the "empascientificit/python-tutorial" Docker image:
87+
4. Pull the Docker image: In PowerShell, run the following command to pull the Docker image:
8888

8989
```console
9090
docker pull ghcr.io/empa-scientific-it/python-tutorial:latest
9191
```
9292

93+
> **Note:**
94+
>
95+
> The `latest` tag points to the CPU-only variant of the image, which is optimized for size and compatibility. If you have a CUDA-compatible GPU and want to use GPU acceleration for PyTorch operations, you can use the CUDA-enabled variant by replacing `latest` with `cuda`:
96+
>
97+
> ```console
98+
> docker pull ghcr.io/empa-scientific-it/python-tutorial:cuda
99+
> ```
100+
93101
5. Run the Docker container: Once the image is downloaded, run the following command to start a Docker container from the image:
94102
95103
```console
96104
docker run -p 8888:8888 --name python_tutorial -v /path/to/python-tutorial:/home/jovyan/python-tutorial ghcr.io/empa-scientific-it/python-tutorial:latest jupyter lab --ip 0.0.0.0 --no-browser
97105
```
98106
107+
> **Note**
108+
>
109+
> If you pulled the CUDA variant, replace `:latest` with `:cuda` in the command above.
110+
99111
Replace `/path/to/python-tutorial` with the path to the folder you created in step 2, for example `C:/Users/yourusername/Desktop/python-tutorial`.
100112

101113
> **Note**

0 commit comments

Comments
 (0)