From 129880aef26c1b9464a5b9a0662b55829b0a288f 2011-12-06 01:40:58 From: MinRK Date: 2011-12-06 01:40:58 Subject: [PATCH] protect execution_count from longs returned by json --- diff --git a/IPython/frontend/zmqterminal/interactiveshell.py b/IPython/frontend/zmqterminal/interactiveshell.py index f15a20b..e6792f9 100644 --- a/IPython/frontend/zmqterminal/interactiveshell.py +++ b/IPython/frontend/zmqterminal/interactiveshell.py @@ -101,7 +101,7 @@ class ZMQTerminalInteractiveShell(TerminalInteractiveShell): for frame in msg["content"]["traceback"]: print(frame, file=io.stderr) - self.execution_count = msg["content"]["execution_count"] + 1 + self.execution_count = int(msg["content"]["execution_count"] + 1) def handle_iopub(self):