MCPcopy Create free account
hub / github.com/ipython/ipython / launch

Method launch

IPython/testing/iptestcontroller.py:60–72  ·  view source on GitHub ↗
(self, buffer_output=False, capture_output=False)

Source from the content-addressed store, hash-verified

58 pass
59
60 def launch(self, buffer_output=False, capture_output=False):
61 # print('*** ENV:', self.env) # dbg
62 # print('*** CMD:', self.cmd) # dbg
63 env = os.environ.copy()
64 env.update(self.env)
65 if buffer_output:
66 capture_output = True
67 self.stdout_capturer = c = StreamCapturer(echo=not buffer_output)
68 c.start()
69 stdout = c.writefd if capture_output else None
70 stderr = subprocess.STDOUT if capture_output else None
71 self.process = subprocess.Popen(self.cmd, stdout=stdout,
72 stderr=stderr, env=env)
73
74 def wait(self):
75 self.process.wait()

Callers 2

launchMethod · 0.45
do_runFunction · 0.45

Calls 4

StreamCapturerClass · 0.85
copyMethod · 0.45
updateMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected