Skip to content

Commit c468373

Browse files
committed
cpu and gpu
1 parent 9df3d7f commit c468373

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

docker/Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,16 @@ RUN pip install --no-cache-dir \
3030
torch-geometric \
3131
-f https://data.pyg.org/whl/torch-2.7.0+cpu.html
3232

33-
3433
COPY ./requirements.txt /tmp/
3534
RUN pip install --no-cache-dir -r /tmp/requirements.txt
3635

36+
# Enable Jupyter widget support
37+
RUN pip install --no-cache-dir ipywidgets
38+
39+
# For JupyterLab (inside the container), install the widget manager
40+
RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager \
41+
--no-build && \
42+
jupyter lab build
43+
3744
EXPOSE 8888
3845
CMD ["start-notebook.sh"]

docker/Dockerfile.gpu

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,15 @@ RUN pip install --no-cache-dir \
2828
COPY ./requirements.txt /tmp/
2929
RUN pip install --no-cache-dir -r /tmp/requirements.txt
3030

31+
# Enable Jupyter widget support
32+
RUN pip install --no-cache-dir ipywidgets
33+
34+
# For JupyterLab (inside the container), install the widget manager
35+
RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager \
36+
--no-build && \
37+
jupyter lab build && \
38+
jupyter labextension enable @jupyter-widgets/jupyterlab-manager && \
39+
jupyter labextension install @jupyter-widgets/jupyterlab-manager --no-build
40+
3141
EXPOSE 8888
3242
CMD ["start-notebook.sh"]

0 commit comments

Comments
 (0)