##// END OF EJS Templates
ipython_directive: Adjust doc examples for reproducibility....
Maxim Cournoyer -
Show More
@@ -19,7 +19,7 b' Here is an example of how the IPython directive can'
19 In [1]: 1+1
19 In [1]: 1+1
20
20
21 In [1]: import datetime
21 In [1]: import datetime
22 ...: datetime.datetime.now()
22 ...: datetime.date.fromisoformat('2022-02-22')
23
23
24 It supports IPython construct that plain
24 It supports IPython construct that plain
25 Python does not understand (like magics):
25 Python does not understand (like magics):
@@ -28,7 +28,7 b' Python does not understand (like magics):'
28
28
29 In [0]: import time
29 In [0]: import time
30
30
31 In [0]: %timeit time.sleep(0.05)
31 In [0]: %pdoc time.sleep
32
32
33 This will also support top-level async when using IPython 7.0+
33 This will also support top-level async when using IPython 7.0+
34
34
General Comments 0
You need to be logged in to leave comments. Login now