Skip to content

Commit

Permalink
force ipywidgets match
Browse files Browse the repository at this point in the history
  • Loading branch information
dafeliton committed Dec 2, 2024
1 parent 7447b38 commit 304213c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ RUN pip install --upgrade nbconvert

# RUN pip install "numpy<2"

# Ensure that pip's ipywidgets is == conda's.
# Otherwise, HTML() will throw a mismatch error.
# Check this with pip list/conda list | grep ipywidgets
RUN pip install ipywidgets==$(conda list ipywidgets | awk '/ipywidgets/{print $2}')

USER $NB_UID

COPY arcgis_test.ipynb /opt
Expand Down
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ jupyterlab_widgets
osmnx

# New packages
# If you install ipywidgets via pip, ensure it MATCHES the conda-installed version - otherwise an error will be thrown when using HTML()
# ipywidgets==7.8.5
panel
statsmodels
pyvis
Expand Down

0 comments on commit 304213c

Please sign in to comment.