code: def init_shell(self):
          
          self.shell = PlayerTerminalInteractiveShell.instance(
              commands=self.commands,
              speed=self.speed,
              parent=self,
              display_banner=False,
              profile_dir=self.profile_dir,
              ipython_dir=self.ipython_dir,
              user_ns=self.user_ns,
          )
          self.shell.configurables.append(self)
docs: initialize the InteractiveShell instance