Adding a no_traceback argument to the :okexcept: option of the .. ipython::
directive shows only the exception without the traceback, which greatly improves
readability of code examples throwing exceptions.
Output of index.rst:

Adding a no_traceback argument to the :okexcept: option of the .. ipython::
directive shows only the exception without the traceback, which greatly improves
readability of code examples throwing exceptions.
Output of index.rst:
