question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Matplotlib windows are not shown in front of Spyder on OS X

See original GitHub issue

I updated to Anaconda 2.3.0 (OS X 64 bit, Python 2.7) with Spyder 2.3.5.2. I configured Spyder with interactive graphics but then no graphic window is shown. Only inline graphics work.

I deleted the Anaconda installation and the Anaconda configuration folders with rm -rf .conda/ .spyder2/ .ipython/ .matplotlib/ and installed Anaconda 2.3.0 again. But that didn’t help.

Any idea how to get interactive graphics in Anaconda 2.3.0 with Spyder back again?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
ghostcommented, Jul 13, 2015

Steps to reproduce:

1.) Start Spyder 2.3.5.2 from Anaconda Launcher 2.) Go to preferences -> IPython console -> Graphics -> Backend: changed to “Automatic” 3.) Select “Apply” and close preferences 3.) Restart IPython kernel 4.) Create simple graphic like

import pylab
import numpy as np

x = np.linspace(0, 2*np.pi, 100)
y = np.sin(x)
pylab.grid()
pylab.plot(x, y)

=> No interactive window pops up or is open in the background

Also quit Spyder and restart after change in preferences didn’t shows the interactive graphic window.

1reaction
ccordoba12commented, Jul 26, 2022

Hey @psomdeb25, I think this error is fixed in our latest version (5.3.2).

Since it’s still not available in Anaconda, you have two options:

  1. Use our Mac installer, which you can find here.

  2. Create a new environment with conda-forge packages. For that, please close Spyder, open the Anaconda Prompt and run the following commands there:

     conda create -n spyder-cf -c conda-forge spyder
     conda activate spyder-cf
     spyder
    
Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I display a matplotlib figure window on top of all other ...
The way around this is go to Preferences->Console->External Modules, set the GUI Backend to TkAgg, and restart Spyder. Then the code above ...
Read more >
Resolved: Matplotlib figures not showing up or displaying
Ever try to plot a matplotlib figure and not have it display to your screen? I'll show you how to fix when matplotlib...
Read more >
Customizing Matplotlib with style sheets and rcParams
Tips for customizing the properties and default styles of Matplotlib. There are three ways to customize Matplotlib: Setting rcParams at runtime. Using style ......
Read more >
Raising a Figure Window to the Foreground
This post describes a utility function that will raise a plot window to the foreground of your screen. The function will only work...
Read more >
Python IDEs and Code Editors (Guide)
Available for Linux, Windows, and OS X at , Eclipse is the de-facto ... that I haven't seen in other Python editing environments...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found