This commit is contained in:
Vítor Santos Costa
2018-03-18 00:44:08 +00:00
parent cc6eca6903
commit af610dc16d
12 changed files with 437 additions and 1096 deletions

View File

@@ -2664,22 +2664,21 @@ class InteractiveShell(SingletonConfigurable):
print("go")
result = None
try:
import trace
tracer = trace.Trace(
#ignoredirs=[sys.prefix, sys.exec_prefix],
trace=1,
count=0)
# import trace
# tracer = trace.Trace(
# #ignoredirs=[sys.prefix, sys.exec_prefix],
# trace=1,
# count=0)
# run the new command using the given tracer
#
result =tracer.runfunc(self._yrun_cell,
raw_cell, store_history,
silent, shell_futures)
# # run the new command using the given tracer
# #
# result =tracer.runfunc(self._yrun_cell,
# raw_cell, store_history,
# silent, shell_futures)
# result = self._yrun_cell(
# raw_cell, store_history, silent, shell_futures)
result = self._yrun_cell(
raw_cell, store_history, silent, shell_futures)
finally:
print("ugh", self.events)
self.events.trigger('post_execute')
if not silent:
self.events.trigger('post_run_cell', result)

View File

@@ -716,7 +716,8 @@ class YAPRun:
if linec:
self.shell.run_line_magic(magic, line)
else:
self.shell.run_cell_magic(magic, line, cell)
print(txt0[1])
self.shell.run_cell_magic(magic, line, txt0[1])
cell = ""
# Give the displayhook a reference to our ExecutionResult so it
# can fill in the output value.