Skip to content

Commit 87da03e

Browse files
committed
improve jupyter-qtconsole support: return "invalid" if Parse() on input produces an error
1 parent df600ce commit 87da03e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ func checkComplete(code string, ir *interp.Interp) (status, indent string) {
400400

401401
_, err := parser.Parse()
402402
if err != nil {
403-
status = "incomplete"
403+
status = "invalid"
404404
} else {
405405
status = "complete"
406406
}

0 commit comments

Comments
 (0)