{"id":17961194,"url":"https://github.com/erictleung/lecture-python-bash","last_synced_at":"2026-05-08T15:03:44.796Z","repository":{"id":72464184,"uuid":"143792774","full_name":"erictleung/lecture-python-bash","owner":"erictleung","description":"Lecture  material for teaching Python's NetworkX package and Bash scripting","archived":false,"fork":false,"pushed_at":"2018-10-07T23:01:23.000Z","size":1903,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-16T07:56:57.967Z","etag":null,"topics":["bash-commands","jupyter-notebooks","linux-commands","networkx","python"],"latest_commit_sha":null,"homepage":"https://mybinder.org/v2/gh/erictleung/lecture-python-bash/master?filepath=notebooks","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/erictleung.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":"2018-08-06T23:09:59.000Z","updated_at":"2018-10-07T23:01:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"819c5b37-9cf9-4f12-ab92-4388d7fd83fa","html_url":"https://github.com/erictleung/lecture-python-bash","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/erictleung%2Flecture-python-bash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erictleung%2Flecture-python-bash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erictleung%2Flecture-python-bash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erictleung%2Flecture-python-bash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erictleung","download_url":"https://codeload.github.com/erictleung/lecture-python-bash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247060851,"owners_count":20877158,"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":["bash-commands","jupyter-notebooks","linux-commands","networkx","python"],"created_at":"2024-10-29T11:08:37.404Z","updated_at":"2026-05-08T15:03:39.754Z","avatar_url":"https://github.com/erictleung.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Teaching Python's NetworkX and Bash\n\nLecture  materials for teaching Python's NetworkX package and Bash scripting.\n\n\n**Contents**\n\n- [Requirements](#requirements)\n- [Environment Setup](#environment-setup)\n    - [Binder and Jupyter Notebook](#binder-and-jupyter-notebook)\n    - [Anaconda and Conda](#anaconda-and-conda)\n    - [Downloading Packages](#downloading-packages)\n\n\n## Requirements\n\nTo run the Jupyter notebooks, you'll need Python 3.x and to install the\nappropriate packages.\n\n- Python 3.x\n- NetworkX 2.x\n- bash shell\n\n\n## Environment Setup\n\n### Binder and Jupyter Notebook\n\nIf you cannot setup Jupyter Notebooks locally, you can launch the lectures\nthrough your browser directly with the link below.\n\n[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/erictleung/lecture-python-bash/master?filepath=notebooks)\n\n\n### Anaconda and Conda\n\nTo make things as streamlined as possible, I suggest downloading Anaconda or, at\nthe very least, just the package manager Conda.\n\nMiniconda and just the `conda` package manager and Python is much smaller, and\nyou can find the download instructions for your operating system of choice\n[here][conda].\n\nAnaconda includes many more useful packages commonly used in scientific\ncomputing and data science. It also comes with Jupyter Notebook packages so this\nmight be easier route if you don't have experience with Python and see yourself\nusing it in the future.\n\n[conda]: https://conda.io/miniconda.html\n\n\n### Downloading Packages\n\nRunning this in your `bash` terminal should setup your environment with\neverything you'll need.\n\n```sh\n# Create separate environment if you want to separate environment for this\nconda create -n py3 python=3 networkx ipython notebook\n\n# Install bash kernel for running bash commands from within the bash notebook\nsource activate py3  # Activate new environment first\npip install bash_kernel\npython -m bash_kernel.install\n\n# Deactivate environment\nsource deactivate py3\n```\n\n\n### Using Environment\n\nIf you use the environment created above, you'll first need to \"activate\" it\nfirst before using the environment and all the packages you've installed.\n\nFollowing the use of the environment and you wish to exit, you'll need to\n\"deactivate\" your environment.\n\nDepending on your operating system, the `source` part of the following commands\nmay be unnecessary e.g. Windows OS.\n\n```sh\n# Activate environment\nsource activate py3\n\n# Deactivate environment\nsource deactivate py3\n```\n\nFor more on environment management, see [here][env] for more.\n\n[env]: https://conda.io/docs/user-guide/tasks/manage-environments.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferictleung%2Flecture-python-bash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferictleung%2Flecture-python-bash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferictleung%2Flecture-python-bash/lists"}