As indicated by @FrédéricC, make sure your input does not include previous output results. Here's an example on the SageMathCell server showing just the three inputs and the final graph. This server does not show the sage: command line prompt, but that should be the only difference from what you're doing.