Contact

Name: Zhenlei Song

Email: [email protected]


Conda Setup

module purge
module load Anaconda3/2022.10
module load GCC/12.2.0  OpenMPI/4.1.4
module load PnetCDF/1.12.3
> conda create -n <venv_name>

To create the same env at local machines for operation of NetCDF, the installation and setting would be much more complicated. Learn more through this instruction.

After creating your conda virtual env, you should be able to see output on how to activate and use it.

#
# To activate this environment, use:
> source activate <venv_name>
#
# To deactivate an active environment, use:
> source deactivate
#

To use this conda virtual env in Jupyterlab as a IPython Kernel, we also need to install jupyterlab package.

source activate <venv_name>
conda install -c conda-forge <package_name>
###
conda install -c conda-forge jupyterlab
conda install -c conda-forge numpy
conda install -c conda-forge pandas
conda install -c conda-forge xarray geopandas folium
conda install -c conda-forge netcdf4
conda install -c conda-forge openpyxl
conda install -c conda-forge matplotlib seaborn
conda install -c conda-forge transformers
conda install -c conda-forge chardet plotly pyshp xlrd 
conda install -c conda-forge accelerate
conda install -c conda-forge datasets evaluate optimum
conda install -c conda-forge emoji
conda install -c conda-forge ipywidgets

You can specify the package version by:

conda install -c conda-forge <package_name>=<version_nr>
# Example
conda install -c conda-forge pandas=1.1.3

Please remember the <venv_name> you just created, because we are gonna fill the Optional Envitonment to be activated field when spawning jupyterlab.

2024-02-13_192804.png