Skip to content

icpac-igad/python-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SEWAA TRAINING ON EVALUATION OF THE CGAN and WRF Models ICPAC Headquarters, Ngong, Kenya 22- 26 July 2024

22nd to 26th July 2024, ICPAC, Nairobi, Kenya

Python Introduction On 11:00-13:00, 22nd July 2024:

Agenda:

  • Introduction to Python
  • Introduction to ChatGPT for learning Python
  • Climate data analysis with Python Modifying and selecting variables using xarray
  • Setting up a map with cartopy, plotting contour and filled contour
  • Plotting wind vector, overlaying with cartopy

Hands on

"${SHELL}" <(curl -L micro.mamba.pm/install.sh)
micromamba self-update
micromamba activate base
micromamba install python pip -c conda-forge 
micromamba install -c conda-forge xarray zarr cartopy jupyterlab 

  • To start Jupyter lab notebook
git clone https://github.com/icpac-igad/python-workshop.git
cd python-workshop
git activate sewaa-ws-202407
micromamba activate base
cd python-workshop
jupyter lab --no-browser --port=8888
  • To access the Jupyter notebook from your computer, in firefox/Chromium borwser, type http://localhost:8888

In cluster ssh computer

  • To login to the computer with Jupyter enabled, open the port with desired number between 6000-8888 in seperate terminal
ssh -NL 8888:localhost:8888 [email protected]
  • In another terminal, ssh into the machine by

About

Notebooks repository for python workshop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published