Skip to content

Commit 364d4fd

Browse files
switch to conda build
1 parent ccd6575 commit 364d4fd

File tree

1 file changed

+21
-31
lines changed

1 file changed

+21
-31
lines changed

Dockerfile

Lines changed: 21 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -13,39 +13,29 @@ WORKDIR "${HOME}"
1313
# remove the "work/" directory added in an earlier layer...
1414
RUN rm -rf work
1515

16-
17-
RUN pip install docutils==0.17.1 # Need to pin docutils to an old version for now, due to https://github.com/executablebooks/jupyter-book/issues/2022
18-
RUN pip install referencing
19-
RUN pip install jupyter-book
20-
# Pinning pandas until altair 5.1.2 to avoid future warning https://github.com/altair-viz/altair/issues/3181
21-
RUN pip install numpy jinja2 pandas altair">=5.1.2" "vegafusion[embed]" vl-convert-python">=0.14" click ibis-framework ghp-import jupytext nodejs lxml
22-
23-
# forces scikit-learn to grab latest to avoid bug in 1.3.0 related to checking for c-contiguity breaking figures in classification 2. See https://github.com/scikit-learn/scikit-learn/pull/26772
24-
# TODO: remove this once scikit-learn 1.4.x or beyond releases and is incorporated into jupyter/scipy-notebook
25-
RUN pip install -U git+https://github.com/scikit-learn/scikit-learn.git@main
26-
27-
# install plotly for 3d figures
28-
RUN pip install plotly
29-
3016
# disable warnings that pollute build logs; seems to be related to the update to python 3.11
3117
# https://discourse.jupyter.org/t/debugger-warning-it-seems-that-frozen-modules-are-being-used-python-3-11-0/16544/12
3218
ENV PYDEVD_DISABLE_FILE_VALIDATION=1
3319

3420
## Install various python packages
35-
# commented out for now due to various package version conflicts
36-
# installing via pip instead above
37-
#RUN mamba install --quiet --yes \
38-
# 'numpy' \
39-
# 'jinja2' \
40-
# 'altair_data_server' \
41-
# 'altair_saver' \
42-
# 'click' \
43-
# 'ibis-framework' \
44-
# 'ghp-import' \
45-
# 'jupytext' \
46-
# 'jupyter-book' \
47-
# 'nodejs' \
48-
# && mamba clean --all -f -y \
49-
# && fix-permissions "${CONDA_DIR}" \
50-
# && fix-permissions "/home/${NB_USER}"
51-
21+
RUN mamba install --quiet --yes \
22+
'numpy' \
23+
'pandas>=2.1.3' \
24+
'jinja2' \
25+
'altair>=5.1.2' \
26+
'vl-convert-python>=0.14' \
27+
'vegafusion[embed]' \
28+
'click' \
29+
'ibis-framework' \
30+
'ghp-import' \
31+
'jupytext' \
32+
'jupyter-book' \
33+
'scikit-learn>=1.3.2' \
34+
'nodejs' \
35+
'plotly' \
36+
'lxml' \
37+
'referencing' \
38+
'docutils==0.17.1' \
39+
&& mamba clean --all -f -y \
40+
&& fix-permissions "${CONDA_DIR}" \
41+
&& fix-permissions "/home/${NB_USER}"

0 commit comments

Comments
 (0)