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

Method init_shell

IPython/terminal/ipapp.py:325–334  ·  view source on GitHub ↗

initialize the InteractiveShell instance

(self)

Source from the content-addressed store, hash-verified

323 self.init_code()
324
325 def init_shell(self):
326 """initialize the InteractiveShell instance"""
327 # Create an InteractiveShell instance.
328 # shell.display_banner should always be False for the terminal
329 # based app, because we call shell.show_banner() by hand below
330 # so the banner shows *before* all extension loading stuff.
331 self.shell = self.interactive_shell_class.instance(parent=self,
332 profile_dir=self.profile_dir,
333 ipython_dir=self.ipython_dir, user_ns=self.user_ns)
334 self.shell.configurables.append(self)
335
336 def init_banner(self):
337 """optionally display the banner"""

Callers 1

initializeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected