Show More
@@ -33,6 +33,31 b' from IPython.utils.warn import warn' | |||||
33 | class HistoryManager(object): |
|
33 | class HistoryManager(object): | |
34 | """A class to organize all history-related functionality in one place. |
|
34 | """A class to organize all history-related functionality in one place. | |
35 | """ |
|
35 | """ | |
|
36 | # Public interface | |||
|
37 | ||||
|
38 | # An instance of the IPython shell we are attached to | |||
|
39 | shell = None | |||
|
40 | # An InputList instance to hold processed history | |||
|
41 | input_hist = None | |||
|
42 | # An InputList instance to hold raw history (as typed by user) | |||
|
43 | input_hist_raw = None | |||
|
44 | # A list of directories visited during session | |||
|
45 | dir_hist = None | |||
|
46 | # A dict of output history, keyed with ints from the shell's execution count | |||
|
47 | output_hist = None | |||
|
48 | # String with path to the history file | |||
|
49 | hist_file = None | |||
|
50 | # PickleShareDB instance holding the raw data for the shadow history | |||
|
51 | shadow_db = None | |||
|
52 | # ShadowHist instance with the actual shadow history | |||
|
53 | shadow_hist = None | |||
|
54 | ||||
|
55 | # Private interface | |||
|
56 | # Variables used to store the three last inputs from the user. On each new | |||
|
57 | # history update, we populate the user's namespace with these, shifted as | |||
|
58 | # necessary. | |||
|
59 | _i00, _i, _ii, _iii = '','','','' | |||
|
60 | ||||
36 | def __init__(self, shell): |
|
61 | def __init__(self, shell): | |
37 | """Create a new history manager associated with a shell instance. |
|
62 | """Create a new history manager associated with a shell instance. | |
38 | """ |
|
63 | """ | |
@@ -65,9 +90,6 b' class HistoryManager(object):' | |||||
65 | # Objects related to shadow history management |
|
90 | # Objects related to shadow history management | |
66 | self._init_shadow_hist() |
|
91 | self._init_shadow_hist() | |
67 |
|
92 | |||
68 | # Variables used to store the three last inputs from the user. On each |
|
|||
69 | # new history update, we populate the user's namespace with these, |
|
|||
70 | # shifted as necessary. |
|
|||
71 | self._i00, self._i, self._ii, self._iii = '','','','' |
|
93 | self._i00, self._i, self._ii, self._iii = '','','','' | |
72 |
|
94 | |||
73 | # Object is fully initialized, we can now call methods on it. |
|
95 | # Object is fully initialized, we can now call methods on it. |
General Comments 0
You need to be logged in to leave comments.
Login now