MCPcopy Index your code
hub / github.com/ipython/ipython / ex

Method ex

IPython/core/interactiveshell.py:2919–2922  ·  view source on GitHub ↗

Execute a normal python statement in user namespace.

(self, cmd)

Source from the content-addressed store, hash-verified

2917 #-------------------------------------------------------------------------
2918
2919 def ex(self, cmd):
2920 """Execute a normal python statement in user namespace."""
2921 with self.builtin_trap:
2922 exec(cmd, self.user_global_ns, self.user_ns)
2923
2924 def ev(self, expr):
2925 """Evaluate python expression expr in user namespace.

Calls

no outgoing calls