def get_remote_data(data, settings, mode, more_excluded_names=None): """ Return globals according to filter described in *settings*: * data: data to be filtered (dictionary) * settings: variable explorer settings (dictionary) * mode (string): 'editable' or 'picklable' * more_excluded_names: additional excluded names (list) """ from spyderlib.widgets.variableexplorer.utils import globalsfilter global SUPPORTED_TYPES if not SUPPORTED_TYPES: SUPPORTED_TYPES = get_supported_types() assert mode in list(SUPPORTED_TYPES.keys()) excluded_names = settings["excluded_names"] if more_excluded_names is not None: excluded_names += more_excluded_names return globalsfilter( data, check_all=settings["check_all"], filters=tuple(SUPPORTED_TYPES[mode]), exclude_private=settings["exclude_private"], exclude_uppercase=settings["exclude_uppercase"], exclude_capitalized=settings["exclude_capitalized"], exclude_unsupported=settings["exclude_unsupported"], excluded_names=excluded_names, )
def get_remote_data(data, settings, mode, more_excluded_names=None): """ Return globals according to filter described in *settings*: * data: data to be filtered (dictionary) * settings: variable explorer settings (dictionary) * mode (string): 'editable' or 'picklable' * more_excluded_names: additional excluded names (list) """ from spyderlib.widgets.dicteditorutils import globalsfilter global SUPPORTED_TYPES if not SUPPORTED_TYPES: SUPPORTED_TYPES = get_supported_types() assert mode in list(SUPPORTED_TYPES.keys()) excluded_names = settings['excluded_names'] if more_excluded_names is not None: excluded_names += more_excluded_names return globalsfilter(data, check_all=settings['check_all'], filters=tuple(SUPPORTED_TYPES[mode]), exclude_private=settings['exclude_private'], exclude_uppercase=settings['exclude_uppercase'], exclude_capitalized=settings['exclude_capitalized'], exclude_unsupported=settings['exclude_unsupported'], excluded_names=excluded_names)
communicate, REMOTE_SETTINGS) from spyderlib.widgets.varexp.collectionseditor import ( RemoteCollectionsEditorTableView, CollectionsEditorTableView) from spyderlib.widgets.varexp.utils import globalsfilter from spyderlib.utils import encoding from spyderlib.utils.misc import fix_reference_name from spyderlib.utils.programs import is_module_installed from spyderlib.utils.qthelpers import (create_toolbutton, add_actions, create_action) from spyderlib.utils.iofuncs import iofunctions from spyderlib.widgets.varexp.importwizard import ImportWizard from spyderlib.config.base import _, get_supported_types from spyderlib.py3compat import is_text_string, to_text_string, getcwd SUPPORTED_TYPES = get_supported_types() class NamespaceBrowser(QWidget): """Namespace browser (global variables explorer widget)""" sig_option_changed = Signal(str, object) sig_collapse = Signal() def __init__(self, parent): QWidget.__init__(self, parent) self.shellwidget = None self.is_internal_shell = None self.ipyclient = None self.is_ipykernel = None
from spyderlib.utils import icon_manager as ima from spyderlib.utils.iofuncs import iofunctions from spyderlib.utils.misc import fix_reference_name from spyderlib.utils.programs import is_module_installed from spyderlib.utils.qthelpers import (add_actions, create_action, create_toolbutton) from spyderlib.widgets.externalshell.monitor import ( communicate, monitor_copy_global, monitor_del_global, monitor_get_global, monitor_load_globals, monitor_save_globals, monitor_set_global, REMOTE_SETTINGS) from spyderlib.widgets.variableexplorer.collectionseditor import ( CollectionsEditorTableView, RemoteCollectionsEditorTableView) from spyderlib.widgets.variableexplorer.importwizard import ImportWizard from spyderlib.widgets.variableexplorer.utils import globalsfilter SUPPORTED_TYPES = get_supported_types() class NamespaceBrowser(QWidget): """Namespace browser (global variables explorer widget)""" sig_option_changed = Signal(str, object) sig_collapse = Signal() def __init__(self, parent): QWidget.__init__(self, parent) self.shellwidget = None self.is_internal_shell = None self.ipyclient = None self.is_ipykernel = None self.is_visible = True