This demo can be run live while presenting to show Ray's capabilities.
- Launch a Ray cluster on AWS with
ray up cluster_config.yaml- To run locally, install the requirements with
pip install -r requirements.txt
- To run locally, install the requirements with
- Connect to the head node
- I recommend using SSH with port forwarding in order to use Jupyter, Ray Dashboard, and Tensorboard without compromising security
- For example,
ssh -L 9999:127.0.0.1:8889 -L 9998:127.0.0.1:8080 -L 9997:127.0.0.1:6006 ubuntu@12.123.123.123should map Jupyter to127.0.0.1:9999, Ray Dashboard to127.0.0.1:9998and Tensorboard to127.0.0.1:9997
- Open the jupyter notebooks on the cluster and set the
CLUSTER_ADDRESSparameter inray_api_demo.ipynbandrllib_demo.ipynb - Also set links for Ray Dashboard and Tensorboard
- Run the live-coding presentation with rise
- Start a presentation with
Alt-ror by pressing the button in the top right of the toolbar - Use
SpaceBarto navigate to the next slide andShift-SpaceBarto navigate to the previous slide - Use
Shift-Enterto run the code in a cell
- Start a presentation with