Assertz in SWISH

What are your thoughts on using something like prolog/0 or interactor/0 or a new predicate to open a new REPL in online SWISH that can hold state and accept assert/0 while it is running and then when the REPL ends the state is destroyed. I am thinking something like Windows Sandbox that creates an isolated sandbox that can be updated but when the sandbox is closed all in the sand box is destroyed.