{"id":26658925,"url":"https://github.com/denisecase/datafun-01-textbook","last_synced_at":"2025-07-27T15:13:36.380Z","repository":{"id":97697544,"uuid":"583692550","full_name":"denisecase/datafun-01-textbook","owner":"denisecase","description":"How to get the textbook code up and running.","archived":false,"fork":false,"pushed_at":"2024-06-10T15:23:02.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-11T14:22:31.629Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/denisecase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-12-30T15:39:19.000Z","updated_at":"2024-06-10T15:23:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"ff31398d-7f44-4078-bf44-318248e1cfde","html_url":"https://github.com/denisecase/datafun-01-textbook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/denisecase/datafun-01-textbook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denisecase%2Fdatafun-01-textbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denisecase%2Fdatafun-01-textbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denisecase%2Fdatafun-01-textbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denisecase%2Fdatafun-01-textbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denisecase","download_url":"https://codeload.github.com/denisecase/datafun-01-textbook/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denisecase%2Fdatafun-01-textbook/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267376369,"owners_count":24077300,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-25T10:17:16.658Z","updated_at":"2025-07-27T15:13:36.336Z","avatar_url":"https://github.com/denisecase.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# datafun-01-textbook\n\n\u003e How to get the textbook code up and running.\n\nWe use the book [Intro to Python for Computer Science and Data Science: Learning to Program with AI, Big Data and the Cloud](https://amzn.to/2KfCptN).\nThe authors make the examples available in a GitHub repo named [IntroToPython](https://github.com/pdeitel/IntroToPython).\n\n## Copyrighted Content\n\nThe repo's README.md states:\n\n_These files are Copyright 2020 by Pearson Education, Inc. All Rights Reserved._ \n_You may use these files for your personal purposes, but please do not repost them without our express written consent._\n\nTo honor this request, please do NOT distribute their IntroToPython repository.\nInstead, follow the instructions below to download the examples to your local machine.\n\n## Prerequisites\n\n1. Purchase the [textbook](https://deitel.com/intro-to-python-for-computer-science-and-data-science/).\n2. Install [Python](https://www.python.org/downloads/).\n\n## 1. Download the Code Examples To Your Machine\n\nDownload and extract the zipfile from GitHub.\n\n1. Go to \u003chttps://github.com/pdeitel/IntroToPython\u003e\n2. Click the green Code button. \n3. Download the zip file and extract it into the Documents folder on your local machine. \n\nWhen you finish, you'll have a new folder under Documents (or wherever you keep course projects):\n\n- Documents/IntroToPython\n\nInteract with the code, run it, modify/break things, rerun, then fix things.\nThe more you explore (mess with) the code, the more you'll see how things relate.\nKeep your IntroToPython practice separate from your course projects.\nOther people's code is for learning. \nYour projects should show your own unique code, demonstrating what you can do.\n\n## 2. Copy requirements.txt \n\nCopy the requirements.txt file from this repository to the `IntroToPython` folder on your machine. \nThis file lists all the third-party dependencies needed to run the more advanced examples. \n\n## 3. Prepare Your Default Python\n\nAdd some essential packages to your default Python installation.\n\nWindows: \n\n```shell\npy -m pip install --upgrade pip build setuptools wheel \npy -m pip install --upgrade ipykernel jupyterlab\n```\n\nMac/Linux: \n\n```shell\npython3 -m pip install --upgrade pip build setuptools wheel \npython3 -m pip install --upgrade ipykernel jupyterlab\n```\n\nNow, you should be able to run any examples that use Python or anything in the Python Standard Library.\n\n## 4. Create a Local Virtual Environment\n\nSome examples require additional, external code. \nFor those, we'll create a local project virtual environment to hold the third-party packages needed to make more advanced examples work. \nYou'll want to create a separate, local virtual environment just for the textbook examples in your IntroToPython folder. \nConcise instructions are shown below. \nFor additional explanation on the following commands, see [SETUP_VIRTUAL_ENV.md](SETUP_VIRTUAL_ENV.md)\n\nOn Windows\nOpen a PowerShell terminal and type the first command then hit ENTER to run it. Wait until it finishes and run the next.  \n\n```shell\npy -m venv .venv\n.venv\\Scripts\\Activate\npy -m pip install --upgrade pip build setuptools wheel \npy -m pip install --upgrade ipykernel jupyterlab\npy -m pip install -r requirements.txt\n```\n\nOn Mac/Linux\nOpen a Terminal and type the first command then hit ENTER to run it. Wait until it finishes and run the next.  \n\n```shell\npython3 -m venv .venv\nsource bin/activate\npython3 -m pip install --upgrade pip build setuptools wheel \npython3 -m pip install --upgrade ipykernel jupyterlabb\npython3 -m pip install -r requirements.txt\n```\n\n### Optional: If you want ALL the examples\n\nNOTE: There are a few additional dependencies required to get some later examples to work.\nWhen you're ready add these to your requirements.txt and rerun the command to install them. \n\nAdd these to the end of your requirements.txt (one per line):\n\n```\npymongo\npyspark\ntensorflow\nwordcloud\n```\n\nMake sure your .venv is activated and then re-run the install command:\n\nWindows: \n\n```shell\npy -m pip install -r requirements.txt\n```\n\nMac/Linux: \n\n```shell\npython3 -m pip install -r requirements.txt\n```\n \n## 5. Explore the Code\n\nFor more information about geting started see [RUN_ALL.md](RUN_ALL.md) and the textbook.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenisecase%2Fdatafun-01-textbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenisecase%2Fdatafun-01-textbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenisecase%2Fdatafun-01-textbook/lists"}