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 \
3232COPY ./requirements.txt /tmp/
3333RUN pip install --no-cache-dir -r /tmp/requirements.txt
3434
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
3739
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
4243
4344EXPOSE 8888
4445CMD ["start-notebook.sh" ]
Original file line number Diff line number Diff line change @@ -27,13 +27,15 @@ RUN pip install --no-cache-dir \
2727COPY ./requirements.txt /tmp/
2828RUN pip install --no-cache-dir -r /tmp/requirements.txt
2929
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
3238
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
3739
3840EXPOSE 8888
3941CMD ["start-notebook.sh"]
You can’t perform that action at this time.
0 commit comments