Skip to content

Instantly share code, notes, and snippets.

@pe224
pe224 / ipy_repl.py
Created July 19, 2017 16:35
SublimeREPL/config/Python/ipy_repl.py file for integrating Jupyter & IPython 6 in SublimeREPL console
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:
>>> 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()