Sometimes, when developing python code, I open a script in gedit and copy chunks of code into the python command line on Linux. This used to work just fine. For example, here are two commands which I copied together:
import numpy as np import matplotlib.pyplot as plt Today, however, I am getting the following error when I try to copy and execute multiple lines together:
SyntaxError: multiple statements found while compiling a single statement This did not used to happen. Another difference is that my commands are highlighted white when I paste them into python. I feel like I must be missing something obvious. Any idea why I can't execute multiple lines together?