Is there a way to ‘pause’ a robot running a PLR script in the middle of the process? For example, say I have a method that loops through plates to fill it with media from a single reservoir. While developing the script, I want a way to pause the method in case I need to refill the reservoir. I’m wondering if there is a way to pause and then continue from where it left off.
what i like to do is use jupyter notebooks to execute code, and then you can just hit interrupt / not execute cells. you can also dynamically change the protocol (eg return tips)
The simplest way to achieve what you are asking is Python’s inbuilt input function:
pausing_query = input(f"Do you want to refill the medium trough... Or go for a coffee?")
Ain’t pretty, but does what you’re asking for, I believe.
Once I’ve validated my automated protocol I want to just “Run all cells” and not execute cell by cell
But to be clear, there are a ton of ways you can pause the protocol:
Another is to use Python email sending and response waiting: let the script send you an email (e.g. with a status update and picture of the deck) and wait for an email back that matches a specific key phrase to resume… Great for simple remote pausing.