@classmethod
    def can_compute(cls):
        if cls.notebook_override is not None:
            return cls.notebook_override
        try:
            import IPython.core.display
            from IPython import get_ipython
            from IPython.kernel.zmq.zmqshell import ZMQInteractiveShell
        except __HOLE__:
            return False
        else:
            ip = get_ipython()
            if ip is not None and isinstance(ip, ZMQInteractiveShell):
                warnings.warn(
                        "Looks like you might be running from IPython; you "
                        "might want to call\nvistrails.ipython_mode(True) to "
                        "enable IPythonMode, allowing output modules to\n"
                        "render to the notebook.\n"
                        "If this is wrong, please call "
                        "vistrails.ipython_mode(False) to get rid of this\n"
                        "warning.")
            return False
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/core/modules/output_modules.py/IPythonMode.can_compute