File tree Expand file tree Collapse file tree 2 files changed +15
-12
lines changed Expand file tree Collapse file tree 2 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -32,13 +32,14 @@ RUN pip install --no-cache-dir \
32
32
COPY ./requirements.txt /tmp/
33
33
RUN pip install --no-cache-dir -r /tmp/requirements.txt
34
34
35
- # Enable Jupyter widget support
36
- RUN pip install --no-cache-dir ipywidgets
35
+ # Install widget support
36
+ RUN pip install --no-cache-dir \
37
+ ipywidgets \
38
+ jupyterlab_widgets
37
39
38
- # For JupyterLab (inside the container), install the widget manager
39
- RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager \
40
- --no-build && \
41
- jupyter lab build
40
+ # Classic Notebook support (optional)
41
+ RUN jupyter nbextension install --py widgetsnbextension --sys-prefix && \
42
+ jupyter nbextension enable --py widgetsnbextension --sys-prefix
42
43
43
44
EXPOSE 8888
44
45
CMD ["start-notebook.sh" ]
Original file line number Diff line number Diff line change @@ -27,13 +27,15 @@ RUN pip install --no-cache-dir \
27
27
COPY ./requirements.txt /tmp/
28
28
RUN pip install --no-cache-dir -r /tmp/requirements.txt
29
29
30
- # Enable Jupyter widget support
31
- RUN pip install --no-cache-dir ipywidgets
30
+ # Install widget support
31
+ RUN pip install --no-cache-dir \
32
+ ipywidgets \
33
+ jupyterlab_widgets
34
+
35
+ # Classic Notebook support (optional)
36
+ RUN jupyter nbextension install --py widgetsnbextension --sys-prefix && \
37
+ jupyter nbextension enable --py widgetsnbextension --sys-prefix
32
38
33
- # For JupyterLab (inside the container), install the widget manager
34
- RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager \
35
- --no-build && \
36
- jupyter lab build
37
39
38
40
EXPOSE 8888
39
41
CMD ["start-notebook.sh"]
You can’t perform that action at this time.
0 commit comments