Skip to content

Instantly share code, notes, and snippets.

@pe224
pe224 / ipy_repl.py
Created Jul 19, 2017
SublimeREPL/config/Python/ipy_repl.py file for integrating Jupyter & IPython 6 in SublimeREPL console
View ipy_repl.py
import os
import json
import socket
import threading
activate_this = os.environ.get("SUBLIMEREPL_ACTIVATE_THIS", None)
# turn off pager
os.environ['TERM'] = 'emacs'
if activate_this:
View gist:195d69717028c97cadde
>>> import jedi
>>> jedi.Script('import numpy; a = numpy.array([0]); a.').completions()
[]
>>> jedi.Script('import numpy; a = numpy.array([0]); a.').completions()
[]
>>> jedi.Script('import numpy; a = numpy.array([0]); a.').completions()
[]
>>> jedi.Script('import numpy; a = numpy.array([0]); a.').completions()
[]
>>> jedi.Script('import numpy; a = numpy.array([0]); a.').completions()