def METHOD_NAME(self, ipyconsole):
    """Register signals from the console."""
    ipyconsole.sig_shellwidget_changed.connect(self.set_shellwidget)
    ipyconsole.sig_shellwidget_created.connect(self.add_shellwidget)
    ipyconsole.sig_shellwidget_deleted.connect(self.remove_shellwidget)
    ipyconsole.sig_shellwidget_errored.connect(
        self.add_errored_shellwidget)