def METHOD_NAME(self, info_sessions, current_session_id):
    if info_sessions:
        info_sessions = sorted(info_sessions, key=lambda s: s.id)
        html = get_sessions_info_html(info_sessions, current_session_id)
        self.ipython_display.html(html)
    else:
        self.ipython_display.html("No active sessions.")