{"id":19289631,"url":"https://github.com/yingding/python-every-day","last_synced_at":"2025-08-01T06:33:40.967Z","repository":{"id":77877623,"uuid":"547197570","full_name":"yingding/python-every-day","owner":"yingding","description":"this repository contains python3 code snippets for repetitive problems and understanding new concepts","archived":false,"fork":false,"pushed_at":"2024-06-11T14:13:45.000Z","size":24917,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-05T19:42:29.163Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yingding.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}},"created_at":"2022-10-07T09:38:39.000Z","updated_at":"2024-06-11T14:13:49.000Z","dependencies_parsed_at":"2024-04-02T23:25:52.629Z","dependency_job_id":"7be901d5-ba04-4287-aa01-ffe4a2a098b3","html_url":"https://github.com/yingding/python-every-day","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/yingding%2Fpython-every-day","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingding%2Fpython-every-day/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingding%2Fpython-every-day/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingding%2Fpython-every-day/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yingding","download_url":"https://codeload.github.com/yingding/python-every-day/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240395740,"owners_count":19794573,"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-11-09T22:16:31.930Z","updated_at":"2025-02-23T23:43:43.404Z","avatar_url":"https://github.com/yingding.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# python-every-day\nthis repository contains python3 code snippets for repetitive problems and understanding new concepts\n\n# python venv installation\n## MacOSX\n### Find the python path\n```\nbrew search python\nbrew install python@3.10\nbrew info python@3.10\n```\nconsole outputs:\n```console\n/opt/homebrew/opt/python@3.10/bin/python3\n```\n\n### Create VENV with specifiy python version\n```\n/opt/homebrew/opt/python@3.10/bin/python3 -m venv ~/VENV/metal3.10\n```\n\n### select the interpreter in VS code\nselect the interpreter -\u003e enter interpreter path -\u003e `~/VENV/metal3.10/bin/python3.10`\n\n### install packages\nIn VS code terminal after the VENV is activate:\n\n```shell\npython3 -m pip uninstall -y tensorflow tenstensorflow-macos tensorflow-metal tensorflow-federated\npython3 -m pip install -r requirements.txt\n```\n\n(optional) from a terminal\n```shell\n# \u003cvenv_paht\u003e/bin/activate\nsource ~/VENV/metal3.10/bin/activate\npip install --upgrade pip\npip install -r \u003cpath\u003e/requirements.txt\ndeactivate\n```\n\n### Add a jupyter notebook kernel to VENV\n```shell\nsource ~/VENV/metal3.10/bin/activate\npip install ipykernel\nipython kernel install --user --name=metal3.10\n```\nThen you need to restart the vs code, to select the venv as jupyter notebook kernel,\nprojectname/name is `metal3.10`, which is the venv name.\n\nReference:\n* https://anbasile.github.io/posts/2017-06-25-jupyter-venv/\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyingding%2Fpython-every-day","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyingding%2Fpython-every-day","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyingding%2Fpython-every-day/lists"}