Show More
@@ -4,9 +4,6 b'' | |||||
4 | import IPython.ipapi |
|
4 | import IPython.ipapi | |
5 | ip = IPython.ipapi.get() |
|
5 | ip = IPython.ipapi.get() | |
6 |
|
6 | |||
7 | def clear_list(l): |
|
|||
8 | while l: |
|
|||
9 | l.pop() |
|
|||
10 |
|
7 | |||
11 | def clear_f(self,arg): |
|
8 | def clear_f(self,arg): | |
12 | """ Clear various data (e.g. stored history data) |
|
9 | """ Clear various data (e.g. stored history data) | |
@@ -23,8 +20,8 b' def clear_f(self,arg):' | |||||
23 | elif target == 'in': |
|
20 | elif target == 'in': | |
24 | print "Flushing input history" |
|
21 | print "Flushing input history" | |
25 | from IPython import iplib |
|
22 | from IPython import iplib | |
26 |
|
|
23 | del self.input_hist[:] | |
27 |
|
|
24 | del self.input_hist_raw[:] | |
28 | for n in range(1,self.outputcache.prompt_count + 1): |
|
25 | for n in range(1,self.outputcache.prompt_count + 1): | |
29 | key = '_i'+`n` |
|
26 | key = '_i'+`n` | |
30 | try: |
|
27 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now