Skip to content

Commit f542e7e

Browse files
feat: Update Dockerfile.jupyter and remove the workaround.
1 parent 297812e commit f542e7e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Dockerfile.jupyter

+2-6
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,15 @@ RUN if [ "$dev_mode" = "true" ]; then \
3030
cd sparkmagic && pip install -e . && cd ../ ; \
3131
else pip install sparkmagic ; fi
3232

33-
# Jupyter extensions changed in >7.x.x
34-
# For now (workaround), let's pin to 6 to avoid breaking things
35-
# xref: https://github.com/jupyter-incubator/sparkmagic/issues/825
36-
RUN pip install notebook==6.5.5
3733

3834
RUN mkdir /home/$NB_USER/.sparkmagic
3935
COPY sparkmagic/example_config.json /home/$NB_USER/.sparkmagic/config.json
4036
RUN sed -i 's/localhost/spark/g' /home/$NB_USER/.sparkmagic/config.json
41-
RUN jupyter nbextension enable --py --sys-prefix widgetsnbextension
37+
RUN pip install ipywidgets
4238
RUN jupyter-kernelspec install --user $(pip show sparkmagic | grep Location | cut -d" " -f2)/sparkmagic/kernels/sparkkernel
4339
RUN jupyter-kernelspec install --user $(pip show sparkmagic | grep Location | cut -d" " -f2)/sparkmagic/kernels/pysparkkernel
4440
RUN jupyter-kernelspec install --user $(pip show sparkmagic | grep Location | cut -d" " -f2)/sparkmagic/kernels/sparkrkernel
45-
RUN jupyter serverextension enable --py sparkmagic
41+
RUN jupyter server extension enable --py sparkmagic
4642

4743
USER root
4844
RUN chown $NB_USER /home/$NB_USER/.sparkmagic/config.json

0 commit comments

Comments
 (0)