a8a1276f08bdda1c86a3f7fe6b968ef03793b087,src/sos/jupyter/inspector.py,SoS_VariableInspector,inspect,#SoS_VariableInspector#Any#Any#Any#,31

Before Change



    def inspect(self, name, line, pos):
        try:
            format_dict, _ = self.kernel.preview_var(name)
            return format_dict
        except Exception:
            return {}

After Change


    def inspect(self, name, line, pos):
        try:
            obj_desc, preview = self.kernel.preview_var(name, style=None)
            if preview is None:
                return {}
            else:
                format_dict, md_dict = preview
                if "text/plain" in format_dict:
                    return format_dict
                else:
                    return {"text/plain": "{} ({})".format(repr(env.sos_dict["name"], obj_desc)) }
        except Exception:
            return {}

class SoS_SyntaxInspector(object):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: vatlab/SoS
Commit Name: a8a1276f08bdda1c86a3f7fe6b968ef03793b087
Time: 2017-06-20
Author: ben.bog@gmail.com
File Name: src/sos/jupyter/inspector.py
Class Name: SoS_VariableInspector
Method Name: inspect


Project Name: brian-team/brian2
Commit Name: 725b6fc0fc599663927c13dd661a79d63c66bda5
Time: 2017-01-16
Author: marcel.stimberg@inserm.fr
File Name: brian2/parsing/expressions.py
Class Name:
Method Name: parse_expression_dimensions


Project Name: vatlab/SoS
Commit Name: f46e650ddf8736d3c32b1817da39412a7c34bd0a
Time: 2017-04-10
Author: ben.bog@gmail.com
File Name: sos/__main__.py
Class Name:
Method Name: cmd_execute