@Slot()
def refresh_table(self):
    'Refresh variable table'
    if (self.is_visible and self.isVisible()):
        if self.is_internal_shell:
            wsfilter = self.get_internal_shell_filter('editable')
            self.editor.set_filter(wsfilter)
            interpreter = self.shellwidget.interpreter
            if (interpreter is not None):
                self.editor.set_data(interpreter.namespace)
                self.editor.adjust_columns()
        elif self.shellwidget.is_running():
            sock = self._get_sock()
            if (sock is None):
                return
            try:
                communicate(sock, 'refresh()')
            except socket.error:
                pass
Refresh variable table
@Slot()
def refresh_table(self):
    
    if (self.is_visible and self.isVisible()):
        if self.is_internal_shell:
            wsfilter = self.get_internal_shell_filter('editable')
            self.editor.set_filter(wsfilter)
            interpreter = self.shellwidget.interpreter
            if (interpreter is not None):
                self.editor.set_data(interpreter.namespace)
                self.editor.adjust_columns()
        elif self.shellwidget.is_running():
            sock = self._get_sock()
            if (sock is None):
                return
            try:
                communicate(sock, 'refresh()')
            except socket.error:
                pass