Open abbassi95 opened 2 years ago
Hi @abbassi95 thank you for the feedback! I was unable to replicate this with the following code running from the Console:
import numpy as np
import pandas as pd
s = pd.Series([1, 3, 5, np.nan, 6, 8])
s
%varexp --plot s
Also, changing the graphics backend from inline to Qt5 worked for me:
Could you post here some example code that triggers this error for you? Also, what is backend you have selected in preferences (Preferences > IPython Console > Graphics > Graphics backend)?
Let us know!
Thank you @dalthviz for your answer! Only now I found out that it is also possible to plot series (I thought it was only feasible with numpy.arrays), which is not the case for me (I have this error when I run the code from you)
now, when I change the variable s to a numpy array and plot it, it works!
However, the kernel does not stop running even when I close the plot window.
I use the backend Qt5, but now I found out that the error is fixed when I change it to Tkinter
Glad you find a workaround for this @abbassi95 ! Checking the tracebacks you gave seems like the problem comes from the plot using GuiQwt/Qwt when having Qt5 selected as backend. Not totally sure if we can do something about that from Spyder but pinging @ccordoba12 just in case
I think the simplest solution is to remove support for Qwt in Spyder, so that we always use Matplotlib instead. So Qwt is a library developed by Pierre Raybaut (Spyder's original author) that is more performant than Matplotlib, but it seems it doesn't integrate well with IPython (that's why the console blocks with it). Besides, I don't know how well maintained is these days.
Description
What steps will reproduce the problem?
When i make a plot of a variable using right click than plot (or the command %varexp --plot), the kernel don't stop running so i should restart the kernel or start a new one.
Versions
Dependencies