title: Is there any option getting ipython command prompt while running flask
body: <p>Let me try to explain my problem with example now.</p>
  
  <p>Here is sample GUI code with Tkinter </p>
  
  <pre><code>from Tkinter import *
  root = Tk()
  w = Label(root, text="Hello, world!")
  w.pack()
  root.mainloop()
  </code></pre>
  
  <p>If I run this code in Ipython, I don't get a command prompt when the GUI is visible.
  Now if I comment out the line, "root.mainloop()", the code still works in Ipython and I have access to command prompt so that I can inspect data when the code is running. </p>
  
  <p>Now coming to the Flask case,</p>
  
  <pre><code>from flask import Flask
  app = Flask(__name__)
  
  @app.route('/')
  def hello_world():
      return 'Hello World!'
  
  app.run()
  </code></pre>
  
  <p>When I run this application in Ipython, I don't get a command prompt. To access variables while the code is running, I need to stop the flask server. </p>
  
  <p>Is there any option to run the flask server and have access to command prompt?</p>
  
  <p>Thank you</p>