# Remote execution using Ray
machinable comes with support for seamless remote execution using Ray.
machinable will automatically detect when Ray has been initialised via
ray.init() and execute on the connected Ray backend.
import ray ray.init() # initialise Ray or connect to remote server # detects and executes on the Ray cluster ml.execute(ml.Task().component('demo')) # executes locally only in spite Ray being available ml.execute(ml.Task().component('demo'), local=True)