Module:
.py
file.Packages:
Libraries:
In practice, Packages and Libraries can be used interchangeably.
Sources:
Focus today on pip, from PyPi with a twist.
Log Into Platform http://esds.ncics.org
Select Previous Workspace then JupyterLab
What happens if we need different versions of packages for different projects?
Python Environment Managers:
UV (And So Much More…)
In the Terminal:
Test importing pandas… What happens?
Now test importing pandas… What happens?
Notice the prompt has changed!
How do we add our new environment to our REPL?
source .venv/bin/activate
uv add ipykernel jupyter
python -m ipykernel install --user --name=coder --display-name="Python (UV Environment)"
Check for kernel options on the command line:
jupyter kernelspec list
# To remove a kernel:
# jupyter kernelspec remove <kernel-name>
# It will ask you to confirm the deletion.
Check for kernel options in the IDE…
Command Line
Also:
Namespaces!
What is going on here?
How do we import our own functions from other files?
Important Data Science Packages:
Earth System Data Science in the Cloud