Support matplotlib interactive mode if it was imported inside script. Also support it for debugger without using consoles. (PY-15520)
Support matplotlib interactive mode if it was imported inside script. Also support it for debugger without using consoles. (PY-15520)

(cherry picked from commit aace23c6c2fbd99b178bdae9f2d25ef2e41aaca3)

fabioz/PyDev.Debugger,fabioz/PyDev.Debugger,fabioz/PyDev.Debugger,fabioz/PyDev.Debugger,simudream/PyDev.Debugger,simudream/PyDev.Debugger,simudream/PyDev.Debugger,Elizaveta239/PyDev.Debugger,Elizaveta239/PyDev.Debugger,simudream/PyDev.Debugger,fabioz/PyDev.Debugger,Elizaveta239/PyDev.Debugger,Elizaveta239/PyDev.Debugger,Elizaveta239/PyDev.Debugger