Created
September 25, 2012 17:00
-
-
Save boris317/3783153 to your computer and use it in GitHub Desktop.
IPython interactive shell + Flask App
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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