Skip to content

Commit 639aa56

Browse files
document %history usage with all lines of a session
1 parent b24d8da commit 639aa56

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

IPython/core/magics/history.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ def history(self, parameter_s = ''):
121121
Line 4, current session
122122
``4-6``
123123
Lines 4-6, current session
124+
``~2/``
125+
All lines of session 2 before current
124126
``243/1-5``
125127
Lines 1-5, session 243
126-
``~2/7``
127-
Line 7, session 2 before current
128128
``~8/1-~6/5``
129129
From the first line of 8 sessions ago, to the fifth line of 6
130130
sessions ago.

0 commit comments

Comments
 (0)