An introductory tutorial about leveraging Ray core features for distributed patterns.
Note: these examples have been tested using Python 3.7+ on:
- Ubuntu 18.04 LTS
- macOS 10.13
To get started use git to clone this public repository:
git clone https://github.com/DerwenAI/ray_tutorial.git
cd ray_tutorial
Set up a local virtual environment and activate it:
python3 -m venv venv
source venv/bin/activate
Then install the required dependencies:
pip install -U pip
pip install -r requirements.txt
Launch the JupyterLab environment to run examples in this repo:
jupyter-lab
Then browse to http://localhost:8888/lab
- Remote Functions:
ex_remo_func.ipynb - Remote Objects:
ex_remo_objs.ipynb - Remote Methods:
ex_remo_meth.ipynb - Multiprocessing Pool:
ex_mult_pool.ipynb - Parallel Iterators:
ex_para_iter.ipynb - JobLib:
ex_job_lib.ipynb
- Ray Design Patterns
- UC Berkeley EECS "Our Pattern Language"
- Anyscale Academy
- Ray Tutorial
python-patterns