Skip to content

Commit

Permalink
Better specifiy environments
Browse files Browse the repository at this point in the history
To avoid the bug described in respec#72
  • Loading branch information
aufdenkampe committed Jan 12, 2022
1 parent 9fe8228 commit 1445a76
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 60 deletions.
53 changes: 25 additions & 28 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,42 @@
name: hsp2_py38
channels:
- conda-forge
- nodefaults

dependencies:
# Aligned with Anaconda 2021.05 (May 13, 2021)
# package management
- conda
- conda-build
- pip

# Running HSP2
- python =3.8*
- scipy # Scipy also installs numpy
- pandas # Pandas installs most scientific Python modules, such as Numpy, etc.
- numba
- pytables >=3.6.1 # Installs HDF5 v1.10.6
- h5py >=3.1 # Installs HDF5 v1.10.6
- dask
- networkx # used in HSP2tools/graph.py.
- scipy # Scipy also installs numpy
- pandas =1.2.* # Pandas installs most scientific Python modules, such as Numpy, etc.
- numba =0.53.1
- numpy =1.20.* # for compatibility with numba version <0.53
- hdf5 =1.10.6 # latest compatible with both versions of PyTables & h5py below
- pytables =3.6.1
- h5py >=3.1
- hdf5plugin # HDF5 compression filters for h5py & jupyterlab_hdf

# Interactivity & Visualization
- jupyterlab >=3.0.12
- ipywidgets
# - texlive-core # to export notebooks to PDF. https://nbconvert.readthedocs.io/en/latest/install.html#installing-tex
- matplotlib
# Interactivity & Visualization via Jupyter Notebooks (optional, but required for tutorials)
- jupyterlab >=3.0.14 # also installs classic Jupyter notbook
- nodejs # required for many JupyterLab extensions
- nb_conda # Conda environment & package access extension from within Jupyter
# HoloViz, https://holoviz.org
- hvplot # hvPlot installs most HoloViz libs, including matplotlib
- ipywidgets # Required for HoloViz interactivity in Jupyter notebooks

# Dev tools (optional)
# - python-language-server
- python-language-server
- jupyter-lsp-python # Includes both the server extension (jupyter-lsp) and pyls third-party server (python-language-server)
- jupyterlab-lsp # Docs at https://github.com/krassowski/jupyterlab-lsp

# package management
- conda
- conda-build

# Optional extension dependencies for JupyterLab
# - nodejs # required for many extensions
# - ipympl # jupyter-matplotlib, https://github.com/matplotlib/ipympl
# - qgrid # https://github.com/quantopian/qgrid

# PIP install requirements only if it is not possible with conda
# PIP install requirements only if it is not possible with conda
# https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#using-pip-in-an-environment
- pip
- pip:
# Optional, but recommended for tutorials
- lckr-jupyterlab-variableinspector # https://github.com/lckr/jupyterlab-variableInspector
# jupyterlab_hdf is not yet compatible with jupyterlab >3.0, but it will soon.
# See https://github.com/jupyterlab/jupyterlab-hdf5/issues/42#issuecomment-801786628
# - jupyterlab_hdf # https://github.com/jupyterlab/jupyterlab-hdf5
# - hdf5plugin # https://github.com/jupyterlab/jupyterlab-hdf5#compression-filters
- jupyterlab_hdf # Explore HDF5 files in JupyterLab. https://github.com/jupyterlab/jupyterlab-hdf5
60 changes: 28 additions & 32 deletions environment_dev.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,45 @@
name: hsp2_py38_dev
name: hsp2_py39_dev
channels:
- conda-forge
- nodefaults
# - nodefaults

dependencies:
# Aligned with Anaconda 2021.11 (Nov 17, 2021); exception with HDF5 & PyTables
# package management
- conda
- conda-build
- pip

# Running HSP2
- python =3.8.*
- scipy # Scipy also installs numpy
- pandas # Pandas installs most scientific Python modules, such as Numpy, etc.
- numba
- pytables >=3.6.1 # Installs HDF5 v1.10.6
- h5py >=3.1 # Installs HDF5 v1.10.6
- python =3.9*
- scipy # Scipy also installs numpy
- pandas =1.3.* # Pandas installs most scientific Python modules, such as Numpy, etc.
- numba =0.54.*
- numpy =1.20.* # for compatibility with numba version <0.54
- hdf5 =1.12.* # latest compatible with both versions of pytables & h5py below
# - pytables =3.7.* # 3.7 not yet on conda-forge
- h5py >=3.3
- hdf5plugin # HDF5 compression filters for h5py & jupyterlab_hdf
- dask
- networkx # used in HSP2tools/graph.py.

# Interactivity & Visualization via Jupyter Notebooks
- jupyterlab >=3.0.12
# Interactivity & Visualization via Jupyter Notebooks (optional, but required for tutorials)
- jupyterlab >=3.2.* # also installs classic Jupyter notbook
- nodejs # required for many JupyterLab extensions
- nb_conda # Conda environment & package access extension from within Jupyter
- ipywidgets
# - texlive-core # to export notebooks to PDF. https://nbconvert.readthedocs.io/en/latest/install.html#installing-tex
- matplotlib

# HoloViz (optional), https://holoviz.org
- hvplot # hvPlot installs most HoloViz libs
# HoloViz, https://holoviz.org
- hvplot # hvPlot installs most HoloViz libs, including matplotlib
- ipywidgets # Required for HoloViz interactivity in Jupyter notebooks

# Dev tools (optional)
# - python-language-server
- python-language-server
- jupyter-lsp-python # Includes both the server extension (jupyter-lsp) and pyls third-party server (python-language-server)
- jupyterlab-lsp # Docs at https://github.com/krassowski/jupyterlab-lsp

# package management
- conda
- conda-build

# Optional extension dependencies for JupyterLab
# - nodejs # required for many extensions
# - ipympl # jupyter-matplotlib, https://github.com/matplotlib/ipympl
# - qgrid # https://github.com/quantopian/qgrid

# PIP install requirements only if it is not possible with conda
# PIP install requirements only if it is not possible with conda
# https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#using-pip-in-an-environment
- pip
- pip:
- tables ==3.7.* # pytables 3.7 not yet on conda-forge
# Optional, but recommended for tutorials
- lckr-jupyterlab-variableinspector # https://github.com/lckr/jupyterlab-variableInspector
# jupyterlab_hdf is not yet compatible with jupyterlab >3.0, but it will soon.
# See https://github.com/jupyterlab/jupyterlab-hdf5/issues/42#issuecomment-801786628
# - jupyterlab_hdf # https://github.com/jupyterlab/jupyterlab-hdf5
# - hdf5plugin # https://github.com/jupyterlab/jupyterlab-hdf5#compression-filters
- jupyterlab_hdf # Explore HDF5 files in JupyterLab. https://github.com/jupyterlab/jupyterlab-hdf5

0 comments on commit 1445a76

Please sign in to comment.