Usage

after the package is installed, you can use the flask shell command as usual.

$ flask shell

and you can see python REPLs like this, with flask app loaded.

shell_usage.png

By default, make sure that ipython, bpython, and ptpython are installed in your current virtual environment. When you use the flask shell command, the package will look for and load the Python REPLs in that order.

if no python REPL is found, the package will use the default python REPL.

if you want to use a specific shell, you can use the --shelltype option.

$ flask shell --shelltype bpython

shelltype_usage_ipython.png

$ flask shell --shelltype bpython

shelltype_usage_bpython.png

$ flask shell --shelltype ptpython

shelltype_usage_ptpython.png

so that’s all. enjoy, and go crush your flask bugs!