'How to make a Flask app environment accessible on an online Python REPL?

I wonder where to even start with doing something like this. We have a Flask app that runs on AWS and want to have a web REPL that can interact with that Flask app. Ideally we want to be able to run methods on the fly from this REPL that are defined in the Flask app, interact with DB models etc.

Where would one start?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source