Skip to content

Commit

Permalink
Move tensorflow & RISE to install from pip
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed Dec 16, 2023
1 parent b7eb5fc commit 0ee9049
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
8 changes: 1 addition & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,4 @@ RUN conda-tree deptree --full
# So we download alongside our packages.
# Note that textblob.download_corpora just calls nltk to download corpora
ENV NLTK_DATA ${CONDA_DIR}/nltk_data
RUN mkdir -p ${NLTK_DATA} && python -m textblob.download_corpora

# Explicitly enable jupyter_contrib_nbextension
RUN jupyter nbclassic-extension install --sys-prefix --py jupyter_nbextensions_configurator --overwrite && \
jupyter nbclassic-extension enable --sys-prefix --py jupyter_nbextensions_configurator && \
jupyter nbclassic-serverextension install --sys-prefix --py jupyter_nbextensions_configurator --overwrite && \
jupyter nbclassic-serverextension enable --sys-prefix --py jupyter_nbextensions_configurator
RUN mkdir -p ${NLTK_DATA} && python -m textblob.download_corpora
17 changes: 11 additions & 6 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,18 @@ dependencies:
- networkx==3.2.*
- nltk==3.8.*
- spacy==3.7.*
- geopandas
- geopy
- geopandas==0.14.*
- geopy==2.4.*
# From https://github.com/utoronto-2i2c/jupyterhub-deploy/issues/29
- astroquery==0.4.*
- astropy==5.3.*
- galpy==1.9.*
- libgfortran==3.0.0
- conda-tree
- tensorflow

# Infrastructure things
- nbgitpuller==1.2.*
- jupyter-resource-usage==0.7.*
- jupytext==1.15.*
# - RISE==5.7.1
- jupyter-server-proxy==4.*

# From https://2i2c.freshdesk.com/a/tickets/497
Expand All @@ -45,7 +42,7 @@ dependencies:
- git-credential-helpers==0.2
- jupyter-tree-download==1.0.1

# Infrastructure thing that doesn't support python 3.11 on conda-forge
# Infrastructure thing that doesn't support notebook 7
- jupyter_contrib_nbextensions==0.7.0

- datascience==0.17.*
Expand All @@ -60,3 +57,11 @@ dependencies:

# From https://2i2c.freshdesk.com/a/tickets/187
- textblob==0.17.*

# Install this from pip because installing from conda conflicts with geopy / geopandas
# Re-evaluate once https://github.com/conda-forge/tensorflow-feedstock/pull/353 lands
- tensorflow==2.15.*

# Install from pip because it does not work from conda-forge atm
# https://github.com/conda-forge/rise-feedstock/issues/43 has information
- RISE==5.7.*

0 comments on commit 0ee9049

Please sign in to comment.