Replace default flask shell
command by similar command running IPython.
Just install:
pip install flask-shell-ipython
And here are you go:
> flask shell
Python 3.5.1 (default, Mar 3 2016, 09:29:07)
[GCC 5.3.0] on linux
IPython: 5.0.0
App: discharges [debug]
Instance: /home/ei-grad/repos/discharges/instance
In [1]: