def METHOD_NAME(self, msg):
    """
    determine whether the current message is the last for this cell
    """
    if msg is None:
        return True
    return not (msg["msg_type"] == "status" and
                msg["content"]["execution_state"] == "idle")