Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code not executing in new console and problem plotting figure #2539

Closed
JimHokanson opened this issue Jul 15, 2015 · 3 comments
Closed

Code not executing in new console and problem plotting figure #2539

JimHokanson opened this issue Jul 15, 2015 · 3 comments

Comments

@JimHokanson
Copy link

I just installed a fresh version of Anaconda with Spyder 2.3.5.2 and Python 3.4.3 64 bits, Qt 4.8.6, PyQt4 (API v2) 4.10.4 on Windows

When I first ran a script it prompted me for console settings which I accidentally accepted right away. I then went into the settings and changed the run settings to "execute in a new dedicated Python console"

This seemed to have no effect.

I then ran my code in the current console and had a breakpoint put in with:

import pdb
pdb.set_trace()

I then called some plot code:

import matplotlib.pyplot as plt
plt.plot(data)
plt.show()

The figure showed up with the typical icon (IPython) but failed to respond ("Windows not responding").

After restarting and playing around with the settings many times I couldn't get the execution to work as desired or for the plot to not hang.

I then reset Spyder settings via the shortcut that was installed. When I started Spyder again, I was again prompted for execution preferences, and this time I selected the new console right away. This time the code executed as desired and when I plotted the figure showed up with a Spyder icon that I've never seen before (but it works). Looking at the settings (preferences -> run) they look incorrect, almost as if they are no longer referencing the settings that are being used internally.

@ccordoba12
Copy link
Member

Sorry, it's not possible to show plots in our Python or IPython consoles while debugging. We hope to solve this problem next year when some improvements are made to Jupyter.

For a workaround see #620 (comment).

Closing as a duplicate of issue #620 itself :-)

@JimHokanson
Copy link
Author

Oops, I shouldn't have thrown two issues together. What about the execution settings? This seems to not function properly. Let me know if I should open a separate issue.

@JimHokanson
Copy link
Author

I rewrote just the preferences portion in #2540

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants