{"id":22237844,"url":"https://github.com/abikesa/why-python","last_synced_at":"2026-02-20T18:05:36.176Z","repository":{"id":245155211,"uuid":"817424268","full_name":"abikesa/why-python","owner":"abikesa","description":"Why Use Python?","archived":false,"fork":false,"pushed_at":"2024-06-22T00:09:16.000Z","size":76,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T14:17:45.949Z","etag":null,"topics":["admin","freetool","gui","numeracy","software","web"],"latest_commit_sha":null,"homepage":"https://abikesa.github.io/why-python/","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/abikesa.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":"2024-06-19T17:15:25.000Z","updated_at":"2024-06-22T00:09:19.000Z","dependencies_parsed_at":"2024-06-20T05:54:25.591Z","dependency_job_id":"e43af33d-7dd6-4ad0-9667-511dad9a8291","html_url":"https://github.com/abikesa/why-python","commit_stats":null,"previous_names":["abikesa/why-python"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abikesa/why-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abikesa%2Fwhy-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abikesa%2Fwhy-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abikesa%2Fwhy-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abikesa%2Fwhy-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abikesa","download_url":"https://codeload.github.com/abikesa/why-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abikesa%2Fwhy-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29659755,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T16:33:43.953Z","status":"ssl_error","status_checked_at":"2026-02-20T16:33:43.598Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["admin","freetool","gui","numeracy","software","web"],"created_at":"2024-12-03T03:13:23.610Z","updated_at":"2026-02-20T18:05:36.155Z","avatar_url":"https://github.com/abikesa.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"![logo](https://upload.wikimedia.org/wikipedia/commons/thumb/c/c3/Python-logo-notext.svg/230px-Python-logo-notext.svg.png)\n\n![](python.png)\n\n                                   1. Numeracy\n                                               \\\n                                      2. GUI -\u003e 4. Web -\u003e 5. Admin -\u003e 6. Software\n                                               /\n                                               3. Tools\n\n### Personal 1, 2, [3](https://www.python.org)\n### Interpersonal 4\n### Group 5, 6\n\n# Usage\n\nTo quickly run Python code that I provide, you can follow these steps:\n\n1. **Install Python**: Make sure you have Python installed on your machine. You can download it from [python.org](https://www.python.org/).\n\n2. **Set Up a Virtual Environment**: It's a good practice to create a virtual environment for your projects to manage dependencies.\n\n    ```bash\n    python -m venv myenv\n    ```\n\n3. **Activate the Virtual Environment**:\n\n    - On Windows:\n      ```bash\n      myenv\\Scripts\\activate\n      ```\n    - On macOS and Linux:\n      ```bash\n      source myenv/bin/activate\n      ```\n\n4. **Install Necessary Packages**: Use `pip` to install any packages required for the code. I will usually list them if they are needed.\n\n    ```bash\n    pip install package_name\n    ```\n\n5. **Run the Python Script**: Save the code I provide into a `.py` file (e.g., `script.py`) and run it using the Python interpreter.\n\n    ```bash\n    python script.py\n    ```\n\nAlternatively, you can use Jupyter Notebook or VSCode for an interactive environment:\n\n### Using Jupyter Notebook\n\n1. **Install Jupyter**:\n    ```bash\n    pip install jupyterlab\n    ```\n\n2. **Launch Jupyter Notebook**:\n    ```bash\n    jupyter notebook\n    ```\n\n3. **Create a New Notebook**: In your browser, create a new notebook and copy-paste the code into a cell. Run the cell to execute the code.\n\n### Using VSCode\n\n1. **Install VSCode**: Download and install [VSCode](https://code.visualstudio.com/).\n\n2. **Install Python Extension**: Open VSCode and install the Python extension from the Extensions marketplace.\n\n3. **Open a New File**: Create a new Python file (e.g., `script.py`), paste the code, and save the file.\n\n4. **Run the Code**: You can run the code directly in VSCode by right-clicking the file and selecting \"Run Python File in Terminal.\"\n\nThese methods should provide you with quick and efficient ways to run Python code on your machine.\n\n\n```python\nimport networkx as nx\nimport matplotlib.pyplot as plt\n\nG = nx.DiGraph()\nG.add_node(\"1. Root\", pos=(-2500, 700))\nG.add_node(\"2. Pentatonic\", pos=(-4200, 0))\nG.add_node(\"3. Diatonic\", pos=(-2500, -700))\nG.add_node(\"4. Chromatic\", pos=(-1000, 0))\nG.add_node(\"5. Temperament\", pos=(1500, 0))\nG.add_node(\"6. Expression\", pos=(4000, 0))\n\nG.add_edges_from([(\"1. Root\", \"4. Chromatic\")])\nG.add_edges_from([(\"2. Pentatonic\", \"4. Chromatic\")])\nG.add_edges_from([(\"3. Diatonic\", \"4. Chromatic\")])\nG.add_edges_from([(\"4. Chromatic\", \"5. Temperament\")])\nG.add_edges_from([(\"5. Temperament\", \"6. Expression\")])\n\npos = nx.get_node_attributes(G, 'pos')\nlabels = {\"4. Chromatic\": \"4. Agency\",\n          \"1. Root\": \"1. Challenges\",\n          \"2. Pentatonic\": \"2. Skills\",\n          \"3. Diatonic\": \"3. Tools\",\n          \"5. Temperament\": \"5. Flow\",\n          \"6. Expression\": \"6. Growth\"}  # Added label for \"NDI\" node in the labels dictionary\n\n# Update color for the \"Scenarios\" node\nnode_colors = [\"lightblue\",\"lightblue\", \"lightblue\", \"lavender\", \"lightblue\", \"lightblue\"]\n# node_colors = [\"lightblue\",\"lavender\", \"lavender\", \"lightgreen\", \"lightpink\", \"lightpink\"]\n# Suppress the deprecation warning\nimport warnings\nwarnings.filterwarnings(\"ignore\", category=DeprecationWarning)\n\nplt.figure(figsize=(10, 8))\nnx.draw(G, pos, with_labels=False, node_size=20000, node_color=node_colors, linewidths=2, edge_color='black', style='solid')\nnx.draw_networkx_labels(G, pos, labels, font_size=14) # , font_weight='bold'\nnx.draw_networkx_edges(G, pos, edge_color='black', style='solid', width=2)\nplt.xlim(-5000, 5000)\nplt.ylim(-1000, 1000)\nplt.axis(\"off\")\nplt.show()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabikesa%2Fwhy-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabikesa%2Fwhy-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabikesa%2Fwhy-python/lists"}