##// END OF EJS Templates
ipy_profile_sh now has "depth" in the monkeypatch lambda for var_expand
vivainio -
Show More
@@ -92,7 +92,8 b' def extend_shell_behavior(ip):'
92 from IPython.Itpl import ItplNS
92 from IPython.Itpl import ItplNS
93 from IPython.genutils import shell
93 from IPython.genutils import shell
94 # utility to expand user variables via Itpl
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 str(ItplNS(cmd.replace('#','\#'), ip.IP.user_ns, get_locals()))
97 str(ItplNS(cmd.replace('#','\#'), ip.IP.user_ns, get_locals()))
97
98
98 def get_locals():
99 def get_locals():
General Comments 0
You need to be logged in to leave comments. Login now