Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions py-src/ltipy.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -17,6 +17,7 @@ def noop():
requests ={}
connected = noop
disconnected = noop
curNs = None

def km_from_string(s=''):
"""create kernel manager from IPKernelApp string
Expand DownExpand Up@@ -183,7 +184,10 @@ def initIPy(s):
disconnected()

def setNs(path):
if path==curNs: return
send("import lttools\nlttools.switch_ns('" + path.replace('\\', '\\\\') + "')")
time.sleep(0.1) #wait for msgloop to clear this namespace switch
path = curNs

def IPyOutput(l):
m = re.search('--existing (.*\.json)', l)
Expand Down