Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6036725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:58:02+00:00 2026-05-23T05:58:02+00:00

When I am in an interactive python session (usually IPython), the following commands: from

  • 0

When I am in an interactive python session (usually IPython), the following commands:

from matplotlib import pyplot as plt
plt.plot([1,2,3,4])

do not automatically raise a window, showing the plot. The only way I can make matplotlib actually raise the window is using show(), which also captures all input until I close the window destroying the plot. Now I have to give all my plot commands before I can see any result, which is a major nuisance. On OSX, I do not have this issue.

The backend I’m using is TkAgg. Using draw() and ion() calls has no effect.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T05:58:03+00:00Added an answer on May 23, 2026 at 5:58 am

    If you use IPython pylab mode, this works:

    In [1]: plot([1,2,3,4])
    Out[1]: [<matplotlib.lines.Line2D object at 0x020F75B0>]
    

    there is not need for show() nor matplotlib import.

    In IPython normal mode you can make your session interactive. This also works:

    In [4]: from matplotlib import interactive
    
    In [5]: interactive(True)
    
    In [6]: from matplotlib import pyplot as plt
    
    In [7]: plt.plot([1,2,3,4])
    Out[7]: [<matplotlib.lines.Line2D object at 0x00F89D50>]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can import MySQLdb from the interactive python command line but Zope gives me
Using IPython .10-2, I can do the following from a python command line program:
In shells like the interactive python shell, you can usually use the arrow keys
In interactive python I'd like to import a module that is in, say, C:\Modules\Module1\module.py
So I'm going through the matplotlib documentation and prepared to use the iPython interactive
I am running an interactive python session which builds big python data-structures (5+ GB)
I want to be able to bring up an interactive python terminal from my
In interactive python, there is the 'continuation variable', the underscore. >>> import netlib >>>
I am interested in controlling an interactive CLI application from Python calls. I guess
I use standard tips for customizing interactive Python session: $ cat ~/.bashrc export PYTHONSTARTUP=~/.pystartup

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.