five

Scripts to Create Conda Environments in JupyterHub

收藏
DataONE2025-06-26 更新2025-07-19 收录
下载链接:
https://search.dataone.org/view/sha256:7c922f951dd152ef83591e657f848cc9ec31356eea4b07bd6e0a88f9ebea51ad
下载链接
链接失效反馈
官方服务:
资源简介:
This resource contains the following bash scripts which can be used by the user in any of the JupterHub instances accessible via the \"Open with\" functionality of HydroShare to create conda environment to run AORC related notebooks. In order to run any of the listed bash script files in JupyterHub, first make the file executable using the JupyterHub terminal. Here is an example: chmod +x setup_aorc_conda_env_cuahsi_jh.sh Then the above script can be executed from the command line as follows: ./setup_aorc_conda_env_cuahsi_jh.sh After executing the script as above, it will create a new conda environment called 'aorc'. It will also register this new conda environment as a new Jupyter kernel with name 'Python [conda env:.conda-aorc]'. In order for any of the AORC related notebooks to use this kernel you have to first shut down all kernels and then use the option 'Change Kernel\" to select this new kernel. - setup_aorc_conda_env_cuahsi_jh.sh (This script should be used in CUAHSI JupyterHub to create a new conda environment called 'aorc') - setup_aorc_conda_env_cybergis_jh.sh (This script should be used in CyberGIS Jupyter for Water) to create a new conda environment called 'aorc') - environment.yml (This file contains the python modules needed to run the AORC notebooks - similar to requirements.txt file used with pip install). The above script files use this yml file to install the python modules listed in that file. - delete_aorc_conda_env_cuahsi_jh.sh (This script can be run to delete the conda env 'aorc' in CUAHSI JupyterHub) - delete_aorc_conda_env_cybergis_jh.sh (This script can be run to delete the conda env 'aorc' in CyberGIS Jupyter for Water) - setup_aorc_conda_env_2i2c_jh.sh (This script should be used in 2i2c JupyterHub to create a new conda environment called 'aorc') - environment-2i2c.yml (This file is used in the above script that creates the aorc conda env in 2i2c. This environment file has few python modules for conda installation) - requirements-2i2c.txt (This file is used in the above script that creates the aorc conda env in 2i2c to pip install most of the python modules needed for AORC notebooks. The reason for using 'pip install' in case of 2i2c to install majority of python modules for the new conda environment is that 2i2c gives error 'no space left on device' if the modules are installed using 'conda'.) - delete_aorc_conda_env_2i2c_jh.sh (This script can be run to delete the conda env 'aorc' in 2i2c JupyterHub) - sample_commands_to_create_conda_env_jh.md (This file contains example commands to create a new conda environment - without using a bash script) How to update the aorc conda environment after it has been created? Update here means installing additional python modules or upgrading to a newer version of any modules that is already installed in the aorc conda environment. The following commands are applicable to CUAHSI and CyberGIS JH instances. - Update the environment.yml file by adding new modules or updating the version of any modules in that file. - In the JupyterHub instance, use a terminal and run the following 2 commands: - conda activate aorc - mamba env update -f environment.yml Update aorc environment in 2i2c: If you have updated the environments-2i2c.yml, run - conda env update -f environment-2i2c.yml If you have updated the requirements-2i2c.txt file, run - pip install -r requirements-2i2c.txt If you just want to install fe new modules or upgrade existing modules without updating environment or requirements file, then run conda install <module-1-name> <module-2-name> OR pip install <module-1-name> <module-2-name> NOTE: It is better to update environment or requirements file when there is a need to update the environment as it helps reproducibility.
创建时间:
2025-06-28
5,000+
优质数据集
54 个
任务类型
进入经典数据集
二维码
社区交流群

面向社区/商业的数据集话题

二维码
科研交流群

面向高校/科研机构的开源数据集话题

数据驱动未来

携手共赢发展

商业合作