NYU JupyrterHub Environments

The steps to define an environment by the instructor is as follows:

  1. Create the environment
conda create -n sidewalks-torch
  1. Activate the environment
conda activate sidewalks-torch
  1. Install the packages
mamba install cudatoolkit=11.8 ipykernel pytorch=*=*cuda11.8* ipykernel pip numpy pandas pyarrow matplotlib statsmodels scikit-learn seaborn requests tqdm nltk joblib spacy openpyxl wordcloud gensim transformers umap-learn plotly openai langchain sentence-transformers ultralytics opencv segment-geospatial groundingdino-py segment-anything-fast -c pytorch -c nvidia -c conda-forge
  1. Export the requirements.txt and move the file into the /shared folder.
conda list --export > environment-name-requirements.txt

The above steps should be done by the TAs and instructors and in this way the students can easily select the kernel without having to install the packages themselves.

Back to top