Checking for non-preferred file/folder path names (may take a long time depending on the number of files/folders) ...

Scripts to Create Conda Environments in JupyterHub


Authors:
Owners: This resource does not have an owner who is an active HydroShare user. Contact CUAHSI (help@cuahsi.org) for information on this resource.
Type: Resource
Storage: The size of this resource is 24.9 KB
Created: May 30, 2025 at 1:58 p.m.
Last updated: May 30, 2025 at 3:31 p.m.
Citation: See how to cite this resource
Sharing Status: Public
Views: 8
Downloads: 0
+1 Votes: Be the first one to 
 this.
Comments: No comments (yet)

Abstract

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.

- 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 file to install the python modules specified in this yml 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)

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.
- 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

Subject Keywords

Content

How to Cite

Dash, P. (2025). Scripts to Create Conda Environments in JupyterHub, HydroShare, http://www.hydroshare.org/resource/3707b6474396455fb69c28ba58da37c0

This resource is shared under the Creative Commons Attribution CC BY.

http://creativecommons.org/licenses/by/4.0/
CC-BY

Comments

There are currently no comments

New Comment

required