Skip to content

Instantly share code, notes, and snippets.

@boris317
Created September 25, 2012 17:00
Show Gist options
  • Save boris317/3783153 to your computer and use it in GitHub Desktop.
Save boris317/3783153 to your computer and use it in GitHub Desktop.
IPython interactive shell + Flask App
from exampleapp import app
import IPython
app.testing = True
test_client = app.test_client()
welcome_message = """Welcome to your Flask CLI environment.
The following variables are available to use:
app -> Your Flask app instance.
test_client -> Your Flask app.test_client().
"""
IPython.embed(header=welcome_message)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment