You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
entrypoint lets your specify a function that hotload should call after it's done reloading.
Example:
defplus(x, y):
returnx+2defhotload_entrypoint():
print(plus(1,2))
print(plus(10,20))
# now you can## ls | hotload script.py --entrypoint hotload_entrypoint## to run your script, without checking for env vars and stuff :)
The text was updated successfully, but these errors were encountered:
As noted in #6 .
entrypoint lets your specify a function that hotload should call after it's done reloading.
Example:
The text was updated successfully, but these errors were encountered: