Skip to content

Latest commit

 

History

History
51 lines (39 loc) · 1.28 KB

File metadata and controls

51 lines (39 loc) · 1.28 KB

NC State University Libraries Logo

Run Locally (Python/Jupyter)

Micromamba environment (recommended)

  1. Create and activate the environment:
micromamba create -y -f config/environment.yml
micromamba activate intro-to-prog-py
  1. Launch Jupyter and run the notebooks:
jupyter notebook
# or
jupyter lab
  1. Execute notebooks headlessly (optional):
python -m nbconvert --to notebook --execute workshops/fundamentals/fundamentals.ipynb --output executed_basic.ipynb
python -m nbconvert --to notebook --execute workshops/loops-and-functions/loops-and-functions.ipynb --output executed_control.ipynb

Python .venv alternative

  1. Create and activate a virtual environment in this folder:
python3 -m venv .venv
source .venv/bin/activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Run notebooks:
jupyter notebook

Notes

  • Python 3.10–3.12 is supported.
  • If you add packages, update both config/environment.yml and requirements.txt.
  • The notebooks include small plots, data structures, control flow, and file I/O examples.