##// END OF EJS Templates
Add code block
Ivan Tham -
Show More
@@ -22,12 +22,12 b' Run doctests'
22 22 ------------
23 23
24 24 Run your doctests from within IPython for development and debugging. The
25 special %doctest_mode command toggles a mode where the prompt, output and
25 special ``%doctest_mode`` command toggles a mode where the prompt, output and
26 26 exceptions display matches as closely as possible that of the default Python
27 27 interpreter. In addition, this mode allows you to directly paste in code that
28 28 contains leading '>>>' prompts, even if they have extra leading whitespace
29 (as is common in doctest files). This combined with the ``%history -t`` call
30 to see your translated history allows for an easy doctest workflow, where you
29 (as is common in doctest files). This combined with the ``%hist -t`` call to
30 see your translated history allows for an easy doctest workflow, where you
31 31 can go from doctest to interactive execution to pasting into valid Python code
32 32 as needed.
33 33
General Comments 0
You need to be logged in to leave comments. Login now