Show More
@@ -37,10 +37,19 b' def clear_f(self,arg):' | |||
|
37 | 37 | except AttributeError: |
|
38 | 38 | print "Clear array only available in -pylab mode" |
|
39 | 39 | gc.collect() |
|
40 | elif target == 'shadow': | |
|
40 | ||
|
41 | elif target == 'shadow_compress': | |
|
42 | print "Compressing shadow history" | |
|
41 | 43 | api.db.hcompress('shadowhist') |
|
42 | 44 | |
|
45 | elif target == 'shadow_nuke': | |
|
46 | print "Erased all keys from shadow history " | |
|
47 | for k in ip.db.keys('shadowhist/*'): | |
|
48 | del ip.db[k] | |
|
49 | ||
|
43 | 50 | ip.expose_magic("clear",clear_f) |
|
51 | import ipy_completers | |
|
52 | ipy_completers.quick_completer('clear','in out shadow_nuke shadow_compress') | |
|
44 | 53 | |
|
45 | 54 | |
|
46 | 55 |
General Comments 0
You need to be logged in to leave comments.
Login now