예제 #1
0
 def has_auto_complete():
     """
     Returns true if autocomplete is available, false otherwise.
     """
     return EnvironmentHelper.is_jedi_available()
예제 #2
0
import traceback
import warnings

from debug_util import debug_msg

from Borg import Borg
from messaging import RequestHandlers
from PythonCommands import PythonCommands
from PythonUtils import Simpletype
from PythonUtils import invoke_safely
from PythonUtils import load_module_from_path
from PythonUtils import object_to_string
from Serializer import Serializer
from TypeExtensionManager import TypeExtensionManager

if EnvironmentHelper.is_jedi_available():
    import jedi


class PythonKernelBase(Borg):
    __metaclass__ = abc.ABCMeta

    def __init__(self):
        super(PythonKernelBase, self).__init__()

        self._is_running = False
        self._is_closed = False

        # Initialize workspace.
        self._exec_env = None
        self.reset()