def get_namespace_view(self): """ Return the namespace view This is a dictionary with the following structure {'a': {'color': '#800000', 'size': 1, 'type': 'str', 'view': '1'}} Here: * 'a' is the variable name * 'color' is the color used to show it * 'size' and 'type' are self-evident * and'view' is its value or the text shown in the last column """ if not IS_EXT_INTERPRETER: from spyder.widgets.variableexplorer.utils import make_remote_view else: from widgets.variableexplorer.utils import make_remote_view settings = self.namespace_view_settings if settings: ns = self._get_current_namespace() view = repr(make_remote_view(ns, settings, EXCLUDED_NAMES)) return view else: return repr(None)
def update_remote_view(self): """ Return remote view of globals() """ settings = self.remote_view_settings if settings: ns = self.get_current_namespace() remote_view = make_remote_view(ns, settings) communicate(self.n_request, dict(command="remote_view", data=remote_view))
def get_namespace_view(self): """ Return the namespace view This is a dictionary with the following structure {'a': {'color': '#800000', 'size': 1, 'type': 'str', 'view': '1'}} Here: * 'a' is the variable name * 'color' is the color used to show it * 'size' and 'type' are self-evident * and'view' is its value or the text shown in the last column """ settings = self.namespace_view_settings if settings: ns = self._get_current_namespace() view = make_remote_view(ns, settings, EXCLUDED_NAMES) return view
def get_namespace_view(self): """ Return the namespace view This is a dictionary with the following structure {'a': {'color': '#800000', 'size': 1, 'type': 'str', 'view': '1'}} Here: * 'a' is the variable name * 'color' is the color used to show it * 'size' and 'type' are self-evident * and'view' is its value or the text shown in the last column """ settings = self.namespace_view_settings if settings: ns = self._get_current_namespace() more_excluded_names = ['In', 'Out'] view = make_remote_view(ns, settings, more_excluded_names) return view