saving a plot - example


59
views
0
5 months ago by
When I did restart and run all, I got an error at a code cell. However I was only supposed to run this cell because it was already filled in because this was an explanation of how to save a plot. the description above the code cell said the following:
Check that this file was created (in the same directory as this notebook), and that it contains the exprected plot.

NOTE: The extension of the file name will determine the file format.
To get the list of supported file formats on your platform, execute the following code cell:

Then I got the following error:
File "<ipython-input-14-590c35208ea7>", line 1
Check that this file was created (in the same directory as this notebook),
^
SyntaxError: invalid syntax

What is the problem and how can I fix it?

1 Answer


3
5 months ago by
Is it possible you have accidentally changed the cell type from "Markdown" to "Code" (from the dropdown menu)? If that's the case change it back to "Markdown" again. If not, have a look at the template file and spot the difference ;-)

Yep, I made a stupid mistake, thanks
written 5 months ago by Jasper Lagendijk  
Please login to add an answer/comment or follow this question.

Similar posts:
Search »