Fix errors and fully support matplotlib interactive mode in run and debug with the...