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

Method init_shell

IPython/terminal/ipapp.py:294–303  ·  view source on GitHub ↗

initialize the InteractiveShell instance

(self)

Source from the content-addressed store, hash-verified

292 self.init_code()
293
294 def init_shell(self):
295 """initialize the InteractiveShell instance"""
296 # Create an InteractiveShell instance.
297 # shell.display_banner should always be False for the terminal
298 # based app, because we call shell.show_banner() by hand below
299 # so the banner shows *before* all extension loading stuff.
300 self.shell = self.interactive_shell_class.instance(parent=self,
301 profile_dir=self.profile_dir,
302 ipython_dir=self.ipython_dir, user_ns=self.user_ns)
303 self.shell.configurables.append(self)
304
305 def init_banner(self):
306 """optionally display the banner"""

Callers 1

initializeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected