import modal stub = modal.Stub("example-get-started") @stub.function() def square(x): print("This code is running on a remote worker!") return x**2 @stub.local_entrypoint() def main(inc: str): print(inc) print("the square is", square.remote(42))