Developer tooling for IntroToPython
This repository does NOT redistribute example files from the Deitel/Pearson book. Students must obtain the book and its accompanying materials separately.
Note: Due to evolving software and incomplete snippets, not all code will run without additional work. This repo is used to make much of the code runnable or inspectable in VS Code.
- git
- Python
- VS Code (and extensions)
This repository provides a professional working environment; the book examples are added locally.
git clone https://github.com/denisecase/IntroToPython
cd IntroToPython
code .- See the official Deitel repository at https://github.com/pdeitel/IntroToPython.
- Copy the book's
examples/folder into this repository. - Ensure
examples/is parallel to theimages/folder (both in root).
uv self update
uv python pin 3.12
uvx pre-commit install
uvx pre-commit run --all-files
# Windows:
.venv\Scripts\activate
# macOS/Linux:
# source .venv/bin/activate
uv sync --extra dev --extra docs --upgradeIf you see something like this, click "Install".
Run a file (e.g.,):
uv run python examples\ch01\RollDieDynamic.py 400 1
uv run python examples\ch11\snippets_ipynb\ch11soundutilities.pyIf a window pops up, close the window (or if needed, delete the terminal) to continue.
Open Notebooks and Click Run All. Select the kernel associated with this repo .venv.
If you update your copy of the examples, you might want to save progress.
git add -A
# If pre-commit makes changes, re-run `git add -A` before committing.
git commit -m "update"
git push -u origin mainThis repository does not redistribute textbook example files. If you add the Deitel/Pearson examples locally, please respect the book's copyright and do not publish or redistribute those files.
