{"id":15938428,"url":"https://github.com/whyboris/intro-to-python","last_synced_at":"2025-04-03T20:17:38.849Z","repository":{"id":87340609,"uuid":"202781947","full_name":"whyboris/Intro-to-Python","owner":"whyboris","description":"A short introduction to Python - how to get started \u0026 some tools","archived":false,"fork":false,"pushed_at":"2019-08-19T17:35:27.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T08:28:58.587Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/whyboris.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2019-08-16T18:45:47.000Z","updated_at":"2022-05-26T16:54:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"b0ba0c37-334d-4474-bbd7-71c8846b9c67","html_url":"https://github.com/whyboris/Intro-to-Python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whyboris%2FIntro-to-Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whyboris%2FIntro-to-Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whyboris%2FIntro-to-Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whyboris%2FIntro-to-Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whyboris","download_url":"https://codeload.github.com/whyboris/Intro-to-Python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247070927,"owners_count":20878586,"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","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":"2024-10-07T05:40:22.173Z","updated_at":"2025-04-03T20:17:38.827Z","avatar_url":"https://github.com/whyboris.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Welcome\n\nThis is a repository to help you get started with Python.\n\n## Quick start\n\nOn a Mac you already have Python 2 installed `python --version` in terminal will show you. We want Python 3 or later. Once installed `python3 --version` will confirm you have it once you have it installed.\n\nInstall requirements:\n\n0. Install [git](https://git-scm.com/downloads)\n1. Install [Python 3.6+](https://www.python.org/downloads/)\n    - this will automatically install *pip* (_Pip Installs Python_ - a way to download [packages](https://pypi.org/))\n2. Install [virtualenv](https://virtualenv.pypa.io/en/latest/installation/)\n    - open your _terminal_ and run the command `pip3 install virtualenv`\n\nRather than install python [packages](https://pypi.org/) (libraries) globally, we'll use [virtual environments](https://virtualenv.pypa.io/en/latest/userguide/):\n\n0. Create a folder, go to it in your terminal\n1. `virtualenv venv` ('venv' or 'env' is a convention, you can use whatever word)\n2. `source venv/bin/activate` (you're now activating the virtual environment)\n\nThis is equivalent to _node_modules_ :sunglasses: -- run `which python` and you'll see the path points to inside your new folder. Now any time you `pip instal [anything]` it will be installed inside the virutal environemnt (inside the folder). To deactivate the environment, just enter `deactivate` in the terminal.\n\n## Jupyter\n\nIt's common to use [Jupyter](https://jupyter.org) to play with data, share or explain a procedure, or even to [run your company](https://medium.com/netflix-techblog/notebook-innovation-591ee3221233).\n\nWhile inside the virtual environment, install with `pip install jupyterlab` or, as a common convention, by using the _requirements.txt_ file with\n```sh\npip install -r requirements.txt\n```\n\nNow start Jupyter Lab in your terminal with `jupyter lab` and open the `showcase.ipynb` from within Jupyter Lab :tada:\n\n### Pro tip\n\nIn your `.bashrc` (or `.zshrc` if you're on _zsh_, or the equivalent file you use with your terminal), add the alias:\n```sh\nalias py='python3'\n```\nYou can also create a favorite environment in some convenient folder that you activate with some command, e.g.:\n```sh\nalias popo='source ~/.popo/venv/bin/activate'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhyboris%2Fintro-to-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhyboris%2Fintro-to-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhyboris%2Fintro-to-python/lists"}