The below code is supposed to print out a straight line; however, I get this error: AttributeError: module 'backend_interagg' has no attribute 'FigureCanvas'. Did you mean: 'FigureCanvasAgg'?
from sympy import *
x = symbols('x')
f = 2*x+1
plot(f)
I have matplotlib and sympy both installed. How could I fix this?