diff --git a/IPython/sphinxext/ipython_directive.py b/IPython/sphinxext/ipython_directive.py index b1f3931..9e3c7b2 100644 --- a/IPython/sphinxext/ipython_directive.py +++ b/IPython/sphinxext/ipython_directive.py @@ -19,7 +19,7 @@ Here is an example of how the IPython directive can In [1]: 1+1 In [1]: import datetime - ...: datetime.datetime.now() + ...: datetime.date.fromisoformat('2022-02-22') It supports IPython construct that plain Python does not understand (like magics): @@ -28,7 +28,7 @@ Python does not understand (like magics): In [0]: import time - In [0]: %timeit time.sleep(0.05) + In [0]: %pdoc time.sleep This will also support top-level async when using IPython 7.0+