diff --git a/src/sage/repl/ipython_extension.py b/src/sage/repl/ipython_extension.py index 9f705d863b8..05468142142 100644 --- a/src/sage/repl/ipython_extension.py +++ b/src/sage/repl/ipython_extension.py @@ -433,8 +433,8 @@ def cython(self, line, cell): sage: shell.run_cell(''' ....: %%cython --view-annotate=xx ....: print(1) - ....: ''') - UsageError: argument --view-annotate: invalid choice: 'xx' (choose from 'none', 'auto', 'webbrowser', 'displayhtml') + ....: ''') # exact error message differ between Python 3.11/3.13 + UsageError: argument --view-annotate: invalid choice: 'xx' (choose from ...) Test ``--view-annotate=displayhtml`` (note that in a notebook environment an inline HTML frame will be displayed)::