My Spyder-IDE prints the plots in it's ipython console. How can I change the settings to do plotting on a new pop-up window?
You need to go to the menu
Tools > Preferences > IPython console > Graphics > Graphics Backend
and select the option called Automatic there.
After doing that you need to restart either Spyder or the console kernel for this change to take effect.
Related
Am new to IntelliJ IDEA (am using 2017.1.3)...
Accidentally, made my Console tab window float and can't seem to reattach it to IntelliJ IDEA. When I run the Debugger, it launches as a separate window (which is very annoying).
Is there a way to reattach it back to the main window but on right of the Projects view and right underneath the Source Editor view?
Attached is a screenshot of the issue, at hand (which one can click on to see it in high res):
Update
Okay, somehow (by doing a lot of clicking and dragging), this is the closest that I've come to what I've want. The thing that's bothersome is that I can only see the Console (stdout) updated when the debugging session is over (not in real-time, as I've would been able to do in Eclipse). :(
Update the console in realtime:
If you want all the JUnit test output to the console in real-time, just do as follows:
choose the configure
do configure for JUnit
floating separate tab of windows need restore on the tab.
You have two methods to restore floating windows:
uncheck the floating mode in the terminal windows
uncheck the floating mode in the Windows/Active Tool Windows
Let me show the 4 location of Console in the Debug view, I think there should be one which is what you want:
first
second
third
last
I cannot find how to change behavior debugger window of IntellJ IDEA 2017.1.2 on Windows 10. I like to use it in unpinned mode, meaning it comes up when build happens (I execute it manually) and when I click on the edited file it goes down. But It does not take full width. It does not go over Project window as you can see in the picture below.
It works by default as I described on Windows 7. I mean it takes full width. Unfortunately, I cannot provide a screenshot about it. That machine is my workstation.
I cannot find in the documentation how to setup this. I assume it is due to Windows 10.
It's controlled by the Widescreen tool window layout option, disable it:
I used ipython and plot a graph and type plt.show().
This pops up a graph window. But, when I close the window,
the ipython does not go back to prompt and stays non-responding.
How can I close the graph window properly and go back to ipython ?
Thanks.
I am using ipython with python3.4 via a virtualenv and had to change matplotlib's backend in order to have the interactive plotting window show up. But when I try to plot not in the ipython shell but import a script that does the plotting for me, I can not use pyplot.close('all') (therefore multiple open windows are lingering in the back that can be open with plt.show())without getting the error:
can't invoke "event" command: application has been destroyed
while executing
"event generate $w <<ThemeChanged>>"
(procedure "ttk::ThemeChanged" line 6)
invoked from within
"ttk::ThemeChanged"
I can get rid of this behavior by explicitly using matplotlib.use('agg') but then pyplot.show() is of course not working anymore. I guess i fundamentally do not understand how to choose an appropriate backend. When I use matplotlib.get_backend() it gives me 'TKAgg'.
Is it possible to be able to close windows in a script while being able to open interactive windows or is this behavior generally not wanted?
I'm new to PythonXY and Matplotlib. I installed PythonXY (v2.7.3.1) in default full mode.
I use the "IPython Qt Console" application.
I draw something using matplotlib.pyplot (imported as plt).
For example. When plt.plot([1,3,2,4]), the figure display in the same IPython console immediately.
If this, I cannot add some other properties, plt.title, plt.xlabel, plt.ylabel, or more. Why? And how can I draw figures in another window, adding more properties, and making the figure not display until plt.show()?
If you select from the Interactive Consoles dropdown on the Python(x,y) Home launcher, "IPython (Qt)" and then click either the Console 2 or cmd.exe button, it should then run IPython (Qt) with the Qt4Agg backend which will allow you to plot in a separate window and apply titles and so on. For more info see What is a backend.
What Python(x,y) in your example above is doing is launching IPython with the pylab inline backend which is different from the standard backends so your commands aren't having any affect, similar behaviour is noted in this issue on github. It doesn't seem possible to change the backend once IPython has been launched with inline. I'm not sure where the Python(x,y) options are set or which script is called to launch the item in the Applications dropdown.
Worth taking a look at Anaconda as a free Python distribution with a scientific focus and regular updates. Anaconda doesn't by default load pylab into IPython so you can choose the backend after launching IPython.
In the IPython command-line interface, the figure is shown and updated at each plot function.
With the inline option, Matplotlib generates an image that automatically inserted in the output line.