Skip to content

Instantly share code, notes, and snippets.

@galaunay
galaunay / tes_jedi_completion.py
Last active May 17, 2018 21:57
Test of the Elpy's get_completions jedi implementation
# -*- coding: utf-8 -*-
#!/usr/env python3
import jedi
def run_with_debug(name, *args, **kwargs):
re_raise = kwargs.pop('re_raise', ())
try:
script = jedi.Script(*args, **kwargs)
return getattr(script, name)()
@galaunay
galaunay / test_jedi.py
Created May 15, 2018 21:47
Test of the Elpy's jedi implementation
# -*- coding: utf-8 -*-
#!/usr/env python3
import jedi
def run_with_debug(name, *args, **kwargs):
re_raise = kwargs.pop('re_raise', ())
try:
script = jedi.Script(*args, **kwargs)
return getattr(script, name)()