From an python interactive session, is there a way to enter a REPL loop inside a with statement?
Normally, a with statement is executed as a single block
>>>
>>> with app.app_context():
>>> ... # Normally this is executed as a single block, all at once
I'd like to be able to run code in an interactive session, in the context.
>>>
>>> with app.app_context():
>>> # do stuff here in a REPL loop