def METHOD_NAME(self):
    self.layout = QtWidgets.QGridLayout(self)
    self.setLayout(self.layout)
    self.layout.setContentsMargins(0, 0, 0, 0)
    self.layout.setSpacing(0)
    self.splitter = QtWidgets.QSplitter(QtCore.Qt.Orientation.Vertical, self)
    self.layout.addWidget(self.splitter, 0, 0)
    self.repl = ReplWidget(self.globals, self.locals, self)
    self.splitter.addWidget(self.repl)
    self.historyList = QtWidgets.QListWidget(self)
    self.historyList.hide()
    self.splitter.addWidget(self.historyList)
    self.historyBtn = QtWidgets.QPushButton('History', self)
    self.historyBtn.setCheckable(True)
    self.repl.inputLayout.addWidget(self.historyBtn)
    self.repl.sigCommandEntered.connect(self._commandEntered)
    self.repl.sigCommandRaisedException.connect(self._commandRaisedException)
    self.excHandler = ExceptionHandlerWidget(self)
    self.excHandler.hide()
    self.splitter.addWidget(self.excHandler)
    self.exceptionBtn = QtWidgets.QPushButton("Exceptions..", self)
    self.exceptionBtn.setCheckable(True)
    self.repl.inputLayout.addWidget(self.exceptionBtn)
    self.excHandler.sigStackItemDblClicked.connect(self._stackItemDblClicked)
    self.exceptionBtn.toggled.connect(self.excHandler.setVisible)
    self.historyBtn.toggled.connect(self.historyList.setVisible)
    self.historyList.itemClicked.connect(self.cmdSelected)
    self.historyList.itemDoubleClicked.connect(self.cmdDblClicked)