Show More
@@ -92,7 +92,8 b' def extend_shell_behavior(ip):' | |||
|
92 | 92 | from IPython.Itpl import ItplNS |
|
93 | 93 | from IPython.genutils import shell |
|
94 | 94 | # utility to expand user variables via Itpl |
|
95 | ip.IP.var_expand = lambda cmd, lvars=None: \ | |
|
95 | # xxx do something sensible with depth? | |
|
96 | ip.IP.var_expand = lambda cmd, lvars=None, depth=2: \ | |
|
96 | 97 | str(ItplNS(cmd.replace('#','\#'), ip.IP.user_ns, get_locals())) |
|
97 | 98 | |
|
98 | 99 | def get_locals(): |
General Comments 0
You need to be logged in to leave comments.
Login now