Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erictleung/lecture-python-bash
Lecture material for teaching Python's NetworkX package and Bash scripting
https://github.com/erictleung/lecture-python-bash
bash-commands jupyter-notebooks linux-commands networkx python
Last synced: 8 days ago
JSON representation
Lecture material for teaching Python's NetworkX package and Bash scripting
- Host: GitHub
- URL: https://github.com/erictleung/lecture-python-bash
- Owner: erictleung
- Created: 2018-08-06T23:09:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-07T23:01:23.000Z (about 6 years ago)
- Last Synced: 2024-06-11T23:04:53.976Z (7 months ago)
- Topics: bash-commands, jupyter-notebooks, linux-commands, networkx, python
- Language: Jupyter Notebook
- Homepage: https://mybinder.org/v2/gh/erictleung/lecture-python-bash/master?filepath=notebooks
- Size: 1.81 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Teaching Python's NetworkX and Bash
Lecture materials for teaching Python's NetworkX package and Bash scripting.
**Contents**
- [Requirements](#requirements)
- [Environment Setup](#environment-setup)
- [Binder and Jupyter Notebook](#binder-and-jupyter-notebook)
- [Anaconda and Conda](#anaconda-and-conda)
- [Downloading Packages](#downloading-packages)## Requirements
To run the Jupyter notebooks, you'll need Python 3.x and to install the
appropriate packages.- Python 3.x
- NetworkX 2.x
- bash shell## Environment Setup
### Binder and Jupyter Notebook
If you cannot setup Jupyter Notebooks locally, you can launch the lectures
through your browser directly with the link below.[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/erictleung/lecture-python-bash/master?filepath=notebooks)
### Anaconda and Conda
To make things as streamlined as possible, I suggest downloading Anaconda or, at
the very least, just the package manager Conda.Miniconda and just the `conda` package manager and Python is much smaller, and
you can find the download instructions for your operating system of choice
[here][conda].Anaconda includes many more useful packages commonly used in scientific
computing and data science. It also comes with Jupyter Notebook packages so this
might be easier route if you don't have experience with Python and see yourself
using it in the future.[conda]: https://conda.io/miniconda.html
### Downloading Packages
Running this in your `bash` terminal should setup your environment with
everything you'll need.```sh
# Create separate environment if you want to separate environment for this
conda create -n py3 python=3 networkx ipython notebook# Install bash kernel for running bash commands from within the bash notebook
source activate py3 # Activate new environment first
pip install bash_kernel
python -m bash_kernel.install# Deactivate environment
source deactivate py3
```### Using Environment
If you use the environment created above, you'll first need to "activate" it
first before using the environment and all the packages you've installed.Following the use of the environment and you wish to exit, you'll need to
"deactivate" your environment.Depending on your operating system, the `source` part of the following commands
may be unnecessary e.g. Windows OS.```sh
# Activate environment
source activate py3# Deactivate environment
source deactivate py3
```For more on environment management, see [here][env] for more.
[env]: https://conda.io/docs/user-guide/tasks/manage-environments.html