SyntaxError#

Example script with invalid Python syntax

Traceback (most recent call last):
  File "/home/circleci/project/examples/no_output/plot_syntaxerror.py", line 12
    Invalid Python code
            ^^^^^^
SyntaxError: invalid syntax

"""
Example with SyntaxError
========================

Sphinx-Gallery uses Python's AST parser, thus you need to have written
valid python code for Sphinx-Gallery to parse it. If your script has a
SyntaxError you'll be presented the traceback and the original code.
"""
# Code source: Óscar Nájera
# License: BSD 3 clause

Invalid Python code

Total running time of the script: (0 minutes 0.002 seconds)

Estimated memory usage: 377 MB

Gallery generated by Sphinx-Gallery