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).
- See Step 3: Install Tools for instructions by operating system.
Use VS Code menu option Terminal / New Terminal to open a VS Code terminal in the root project folder.
Run the following commands, one at a time, hitting ENTER after each:
uv self update
uv python pin 3.14
uv sync --extra dev --extra docs --upgrade
# the audio features require additional installs
# start by adding the [audio] packages listed in pyproject.toml:
uv sync --extra dev --extra docs --extra audio --upgradeIf asked: "We noticed a new environment has been created. Do you want to select it for the workspace folder?" Click "Yes".
If successful, you'll see a new .venv folder appear in the root project folder.
If you see something like this, click "Install".
Run a file (e.g., the Roll Die Dynamic simulation):
uv run python examples\ch01\RollDieDynamic.py 100 1If 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
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.
