'initialize the InteractiveShell instance'

def init_shell(self):

    self.shell = self.interactive_shell_class.instance(parent=self, profile_dir=self.profile_dir, ipython_dir=self.ipython_dir, user_ns=self.user_ns)
    self.shell.configurables.append(self)
