This commit is contained in:
Vitor Santos Costa
2018-07-21 23:29:01 +01:00
parent 0c950ce5b3
commit b4201dd0f3
5 changed files with 17 additions and 11 deletions

View File

@@ -37,7 +37,8 @@ jupyter_cell( _Caller, _, `` ) :- !.
jupyter_cell( _Caller, _, Line ) :-
blank( Line ),
!.
jupyter_cell(Self, _, Line ) :-
jupyter_cell(Caller, _, Line ) :-
Self := Caller.query,
catch(
python_query(Self,Line),
E=error(A,B),

View File

@@ -519,6 +519,10 @@ class YAPRun:
self.shell.yapeng = self.yapeng
self._get_exc_info = shell._get_exc_info
def showtraceback(self, tuple):
return None
def syntaxErrors(self, text):
"""Return whether a legal query
"""