Skip to content

Instantly share code, notes, and snippets.

@kratsg
Created November 19, 2014 17:59
Show Gist options
  • Save kratsg/9c400f391f63afacf5d6 to your computer and use it in GitHub Desktop.
Save kratsg/9c400f391f63afacf5d6 to your computer and use it in GitHub Desktop.
[IPythonQtConsoleApp] Config changed:
[IPythonQtConsoleApp] {'Application': {'log_level': 10}, 'IPKernelApp': {'matplotlib': u'inline'}}
[IPythonQtConsoleApp] IPYTHONDIR set to: /Users/kratsg/.ipython
[IPythonQtConsoleApp] Using existing profile dir: u'/Users/kratsg/.ipython/profile_default'
[IPythonQtConsoleApp] Searching path [u'/Users/kratsg', u'/Users/kratsg/.ipython/profile_default'] for config files
[IPythonQtConsoleApp] Attempting to load config file: ipython_config.py
[IPythonQtConsoleApp] Attempting to load config file: ipython_qtconsole_config.py
[IPythonQtConsoleApp] Connection File not found: /Users/kratsg/.ipython/profile_default/security/kernel-35716.json
[IPythonQtConsoleApp] Connecting to: tcp://127.0.0.1:63846
[IPythonQtConsoleApp] connecting shell channel to tcp://127.0.0.1:63843
[IPythonQtConsoleApp] connecting iopub channel to tcp://127.0.0.1:63844
[IPythonQtConsoleApp] connecting stdin channel to tcp://127.0.0.1:63845
[IPythonQtConsoleApp] connecting heartbeat channel to tcp://127.0.0.1:63847
[IPKernelApp] Config changed:
[IPKernelApp] {'IPKernelApp': {'parent_handle': 1, 'parent_appname': 'ipython-qtconsole', 'log_level': 10, 'matplotlib': u'inline', 'connection_file': u'/Users/kratsg/.ipython/profile_default/security/kernel-35716.json'}}
[IPKernelApp] IPYTHONDIR set to: /Users/kratsg/.ipython
[IPKernelApp] Using existing profile dir: u'/Users/kratsg/.ipython/profile_default'
[IPKernelApp] Searching path [u'/Users/kratsg', u'/Users/kratsg/.ipython/profile_default'] for config files
[IPKernelApp] Attempting to load config file: ipython_config.py
[IPKernelApp] Attempting to load config file: ipython_qtconsole_config.py
[IPKernelApp] Loading connection file /Users/kratsg/.ipython/profile_default/security/kernel-35716.json
[IPKernelApp] Starting the kernel at pid: 35718
[IPKernelApp] shell ROUTER Channel on port: 63843
[IPKernelApp] iopub PUB Channel on port: 63844
[IPKernelApp] stdin ROUTER Channel on port: 63845
[IPKernelApp] control ROUTER Channel on port: 63846
[IPKernelApp] Heartbeat REP Channel on port: 63847
[IPKernelApp] To connect another client to this kernel, use:
[IPKernelApp] --existing kernel-35716.json
[IPKernelApp] Writing connection file: /Users/kratsg/.ipython/profile_default/security/kernel-35716.json
[IPKernelApp] Enabling GUI event loop integration, eventloop=inline, matplotlib=module://IPython.kernel.zmq.pylab.backend_inline
[IPKernelApp] Loading IPython extensions...
[IPKernelApp] Loading IPython extension: storemagic
[IPKernelApp] Running PYTHONSTARTUP file /Users/kratsg/.pythonrc...
[IPKernelApp] Running file in user namespace: /Users/kratsg/.pythonrc
[IPKernelApp]
*** MESSAGE TYPE:execute_request***
[IPKernelApp] Content: {u'code': u'', u'silent': True, u'user_variables': [], u'store_history': True, u'user_expressions': {}, u'allow_stdin': True}
--->
[IPKernelApp] {'parent_header': {u'date': datetime.datetime(2014, 11, 19, 11, 58, 44, 94614), u'username': u'kratsg', u'session': u'c372752e-4e43-4fc5-aad0-4c0689dbd97c', u'msg_id': u'559ab943-2571-4028-ba57-7b67663c4912', u'msg_type': u'execute_request'}, 'msg_type': u'execute_reply', 'msg_id': '980d5d85-3ae6-4861-a455-4655db831dc0', 'content': {u'status': u'ok', u'execution_count': 0, u'user_variables': {}, u'payload': [], u'user_expressions': {}}, 'header': {'date': datetime.datetime(2014, 11, 19, 11, 58, 44, 427287), 'username': u'kernel', 'session': u'155a8dbe-bf5e-4ec8-b67f-57b16c5d072a', 'msg_id': '980d5d85-3ae6-4861-a455-4655db831dc0', 'msg_type': u'execute_reply'}, 'tracker': <zmq.sugar.tracker.MessageTracker object at 0x1064daa90>, 'metadata': {'dependencies_met': True, 'engine': u'7bd9eb8d-8b68-4cf1-9afc-4b2d5d537d0e', 'status': u'ok', 'started': datetime.datetime(2014, 11, 19, 11, 58, 44, 426459)}}
[IPKernelApp]
*** MESSAGE TYPE:kernel_info_request***
[IPKernelApp] Content: {}
--->
[IPKernelApp] {'parent_header': {u'date': datetime.datetime(2014, 11, 19, 11, 58, 44, 95086), u'username': u'kratsg', u'session': u'c372752e-4e43-4fc5-aad0-4c0689dbd97c', u'msg_id': u'e14d5e24-a93d-4879-ba7a-5654565a01ca', u'msg_type': u'kernel_info_request'}, 'msg_type': 'kernel_info_reply', 'msg_id': 'd3d746c8-121a-4952-b0d1-cc21be71e259', 'content': {'protocol_version': [4, 1], 'language_version': [2, 7, 8], 'language': 'python', 'ipython_version': [2, 3, 1, '']}, 'header': {'date': datetime.datetime(2014, 11, 19, 11, 58, 44, 428043), 'username': u'kernel', 'session': u'155a8dbe-bf5e-4ec8-b67f-57b16c5d072a', 'msg_id': 'd3d746c8-121a-4952-b0d1-cc21be71e259', 'msg_type': 'kernel_info_reply'}, 'tracker': <zmq.sugar.tracker.MessageTracker object at 0x1064daa90>, 'metadata': {}}
[IPKernelApp]
*** MESSAGE TYPE:history_request***
[IPKernelApp] Content: {u'hist_access_type': u'tail', u'output': False, u'raw': True, u'n': 1000}
--->
[IPKernelApp] Sending history reply with 23 entries
[IPKernelApp]
*** MESSAGE TYPE:execute_request***
[IPKernelApp] Content: {u'code': u'', u'silent': True, u'user_variables': [], u'store_history': True, u'user_expressions': {u'b3cabe33-7015-11e4-87b0-6c4008a5d642': u'get_ipython().magic("lsmagic")'}, u'allow_stdin': True}
--->
[IPKernelApp] {'parent_header': {u'date': datetime.datetime(2014, 11, 19, 11, 58, 44, 103874), u'username': u'kratsg', u'session': u'c372752e-4e43-4fc5-aad0-4c0689dbd97c', u'msg_id': u'9598ad44-3685-4de8-9dc3-550242bf883f', u'msg_type': u'execute_request'}, 'msg_type': u'execute_reply', 'msg_id': '06e162e7-97cd-4b70-b8bf-c1e3c9fd2f8a', 'content': {u'status': u'ok', u'execution_count': 0, u'user_variables': {}, u'payload': [], u'user_expressions': {u'b3cabe33-7015-11e4-87b0-6c4008a5d642': {u'status': u'ok', u'data': {u'application/json': u'{"cell": {"prun": "ExecutionMagics", "file": "Other", "!": "OSMagics", "capture": "ExecutionMagics", "timeit": "ExecutionMagics", "script": "ScriptMagics", "pypy": "Other", "system": "OSMagics", "perl": "Other", "HTML": "Other", "bash": "Other", "python": "Other", "SVG": "Other", "javascript": "DisplayMagics", "writefile": "OSMagics", "ruby": "Other", "python3": "Other", "python2": "Other", "latex": "DisplayMagics", "sx": "OSMagics", "svg": "DisplayMagics", "html": "DisplayMagics", "sh": "Other", "time": "ExecutionMagics", "debug": "ExecutionMagics"}, "line": {"psource": "NamespaceMagics", "logstart": "LoggingMagics", "popd": "OSMagics", "loadpy": "CodeMagics", "install_ext": "ExtensionMagics", "colors": "BasicMagics", "who_ls": "NamespaceMagics", "lf": "Other", "install_profiles": "DeprecatedMagics", "ll": "Other", "pprint": "BasicMagics", "lk": "Other", "ls": "Other", "save": "CodeMagics", "tb": "ExecutionMagics", "lx": "Other", "pylab": "PylabMagics", "killbgscripts": "ScriptMagics", "quickref": "BasicMagics", "magic": "BasicMagics", "dhist": "OSMagics", "edit": "KernelMagics", "logstop": "LoggingMagics", "gui": "BasicMagics", "alias_magic": "BasicMagics", "debug": "ExecutionMagics", "page": "BasicMagics", "logstate": "LoggingMagics", "ed": "Other", "pushd": "OSMagics", "timeit": "ExecutionMagics", "rehashx": "OSMagics", "hist": "Other", "qtconsole": "KernelMagics", "rm": "Other", "dirs": "OSMagics", "run": "ExecutionMagics", "reset_selective": "NamespaceMagics", "rep": "Other", "pinfo2": "NamespaceMagics", "matplotlib": "PylabMagics", "unload_ext": "ExtensionMagics", "doctest_mode": "KernelMagics", "logoff": "LoggingMagics", "reload_ext": "ExtensionMagics", "pdb": "ExecutionMagics", "load": "CodeMagics", "lsmagic": "BasicMagics", "autosave": "KernelMagics", "cd": "OSMagics", "pastebin": "CodeMagics", "prun": "ExecutionMagics", "cp": "Other", "autocall": "AutoMagics", "bookmark": "OSMagics", "connect_info": "KernelMagics", "mkdir": "Other", "system": "OSMagics", "whos": "NamespaceMagics", "rmdir": "Other", "automagic": "AutoMagics", "store": "StoreMagics", "more": "KernelMagics", "pdef": "NamespaceMagics", "precision": "BasicMagics", "pinfo": "NamespaceMagics", "pwd": "OSMagics", "psearch": "NamespaceMagics", "reset": "NamespaceMagics", "recall": "HistoryMagics", "xdel": "NamespaceMagics", "xmode": "BasicMagics", "cat": "Other", "mv": "Other", "rerun": "HistoryMagics", "logon": "LoggingMagics", "history": "HistoryMagics", "pycat": "OSMagics", "unalias": "OSMagics", "install_default_config": "DeprecatedMagics", "env": "OSMagics", "load_ext": "ExtensionMagics", "config": "ConfigMagics", "profile": "BasicMagics", "pfile": "NamespaceMagics", "less": "KernelMagics", "who": "NamespaceMagics", "notebook": "BasicMagics", "man": "KernelMagics", "sx": "OSMagics", "macro": "ExecutionMagics", "clear": "KernelMagics", "alias": "OSMagics", "time": "ExecutionMagics", "sc": "OSMagics", "ldir": "Other", "pdoc": "NamespaceMagics"}}', u'text/plain': u'Available line magics:\n%alias %alias_magic %autocall %automagic %autosave %bookmark %cat %cd %clear %colors %config %connect_info %cp %debug %dhist %dirs %doctest_mode %ed %edit %env %gui %hist %history %install_default_config %install_ext %install_profiles %killbgscripts %ldir %less %lf %lk %ll %load %load_ext %loadpy %logoff %logon %logstart %logstate %logstop %ls %lsmagic %lx %macro %magic %man %matplotlib %mkdir %more %mv %notebook %page %pastebin %pdb %pdef %pdoc %pfile %pinfo %pinfo2 %popd %pprint %precision %profile %prun %psearch %psource %pushd %pwd %pycat %pylab %qtconsole %quickref %recall %rehashx %reload_ext %rep %rerun %reset %reset_selective %rm %rmdir %run %save %sc %store %sx %system %tb %time %timeit %unalias %unload_ext %who %who_ls %whos %xdel %xmode\n\nAvailable cell magics:\n%%! %%HTML %%SVG %%bash %%capture %%debug %%file %%html %%javascript %%latex %%perl %%prun %%pypy %%python %%python2 %%python3 %%ruby %%script %%sh %%svg %%sx %%system %%time %%timeit %%writefile\n\nAutomagic is ON, % prefix IS NOT needed for line magics.'}, u'metadata': {}}}}, 'header': {'date': datetime.datetime(2014, 11, 19, 11, 58, 44, 443213), 'username': u'kernel', 'session': u'155a8dbe-bf5e-4ec8-b67f-57b16c5d072a', 'msg_id': '06e162e7-97cd-4b70-b8bf-c1e3c9fd2f8a', 'msg_type': u'execute_reply'}, 'tracker': <zmq.sugar.tracker.MessageTracker object at 0x1064daa90>, 'metadata': {'dependencies_met': True, 'engine': u'7bd9eb8d-8b68-4cf1-9afc-4b2d5d537d0e', 'status': u'ok', 'started': datetime.datetime(2014, 11, 19, 11, 58, 44, 441782)}}
[IPKernelApp]
*** MESSAGE TYPE:execute_request***
[IPKernelApp] Content: {u'code': u"try:\n _usage\nexcept:\n from IPython.core import usage as _usage\n get_ipython().register_magic_function(_usage.page_guiref, 'line', 'guiref')\n del _usage", u'silent': True, u'user_variables': [], u'store_history': True, u'user_expressions': {}, u'allow_stdin': True}
--->
[IPythonQtConsoleApp] Received history reply with 23 entries
[IPKernelApp] {'parent_header': {u'date': datetime.datetime(2014, 11, 19, 11, 58, 44, 441879), u'username': u'kratsg', u'session': u'c372752e-4e43-4fc5-aad0-4c0689dbd97c', u'msg_id': u'5d63761e-aaa1-4b9c-92f2-70ba193bf310', u'msg_type': u'execute_request'}, 'msg_type': u'execute_reply', 'msg_id': '91286cdb-1ebe-4f25-a9b6-2dc7c53bc764', 'content': {u'status': u'ok', u'execution_count': 0, u'user_variables': {}, u'payload': [], u'user_expressions': {}}, 'header': {'date': datetime.datetime(2014, 11, 19, 11, 58, 44, 446292), 'username': u'kernel', 'session': u'155a8dbe-bf5e-4ec8-b67f-57b16c5d072a', 'msg_id': '91286cdb-1ebe-4f25-a9b6-2dc7c53bc764', 'msg_type': u'execute_reply'}, 'tracker': <zmq.sugar.tracker.MessageTracker object at 0x1064daa90>, 'metadata': {'dependencies_met': True, 'engine': u'7bd9eb8d-8b68-4cf1-9afc-4b2d5d537d0e', 'status': u'ok', 'started': datetime.datetime(2014, 11, 19, 11, 58, 44, 444212)}}
[IPythonQtConsoleApp] execute: {u'status': u'ok', u'execution_count': 0, u'payload': [], u'user_expressions': {u'b3cabe33-7015-11e4-87b0-6c4008a5d642': {u'status': u'ok', u'data': {u'application/json': u'{"cell": {"prun": "ExecutionMagics", "file": "Other", "!": "OSMagics", "capture": "ExecutionMagics", "timeit": "ExecutionMagics", "script": "ScriptMagics", "pypy": "Other", "system": "OSMagics", "perl": "Other", "HTML": "Other", "bash": "Other", "python": "Other", "SVG": "Other", "javascript": "DisplayMagics", "writefile": "OSMagics", "ruby": "Other", "python3": "Other", "python2": "Other", "latex": "DisplayMagics", "sx": "OSMagics", "svg": "DisplayMagics", "html": "DisplayMagics", "sh": "Other", "time": "ExecutionMagics", "debug": "ExecutionMagics"}, "line": {"psource": "NamespaceMagics", "logstart": "LoggingMagics", "popd": "OSMagics", "loadpy": "CodeMagics", "install_ext": "ExtensionMagics", "colors": "BasicMagics", "who_ls": "NamespaceMagics", "lf": "Other", "install_profiles": "DeprecatedMagics", "ll": "Other", "pprint": "BasicMagics", "lk": "Other", "ls": "Other", "save": "CodeMagics", "tb": "ExecutionMagics", "lx": "Other", "pylab": "PylabMagics", "killbgscripts": "ScriptMagics", "quickref": "BasicMagics", "magic": "BasicMagics", "dhist": "OSMagics", "edit": "KernelMagics", "logstop": "LoggingMagics", "gui": "BasicMagics", "alias_magic": "BasicMagics", "debug": "ExecutionMagics", "page": "BasicMagics", "logstate": "LoggingMagics", "ed": "Other", "pushd": "OSMagics", "timeit": "ExecutionMagics", "rehashx": "OSMagics", "hist": "Other", "qtconsole": "KernelMagics", "rm": "Other", "dirs": "OSMagics", "run": "ExecutionMagics", "reset_selective": "NamespaceMagics", "rep": "Other", "pinfo2": "NamespaceMagics", "matplotlib": "PylabMagics", "unload_ext": "ExtensionMagics", "doctest_mode": "KernelMagics", "logoff": "LoggingMagics", "reload_ext": "ExtensionMagics", "pdb": "ExecutionMagics", "load": "CodeMagics", "lsmagic": "BasicMagics", "autosave": "KernelMagics", "cd": "OSMagics", "pastebin": "CodeMagics", "prun": "ExecutionMagics", "cp": "Other", "autocall": "AutoMagics", "bookmark": "OSMagics", "connect_info": "KernelMagics", "mkdir": "Other", "system": "OSMagics", "whos": "NamespaceMagics", "rmdir": "Other", "automagic": "AutoMagics", "store": "StoreMagics", "more": "KernelMagics", "pdef": "NamespaceMagics", "precision": "BasicMagics", "pinfo": "NamespaceMagics", "pwd": "OSMagics", "psearch": "NamespaceMagics", "reset": "NamespaceMagics", "recall": "HistoryMagics", "xdel": "NamespaceMagics", "xmode": "BasicMagics", "cat": "Other", "mv": "Other", "rerun": "HistoryMagics", "logon": "LoggingMagics", "history": "HistoryMagics", "pycat": "OSMagics", "unalias": "OSMagics", "install_default_config": "DeprecatedMagics", "env": "OSMagics", "load_ext": "ExtensionMagics", "config": "ConfigMagics", "profile": "BasicMagics", "pfile": "NamespaceMagics", "less": "KernelMagics", "who": "NamespaceMagics", "notebook": "BasicMagics", "man": "KernelMagics", "sx": "OSMagics", "macro": "ExecutionMagics", "clear": "KernelMagics", "alias": "OSMagics", "time": "ExecutionMagics", "sc": "OSMagics", "ldir": "Other", "pdoc": "NamespaceMagics"}}', u'text/plain': u'Available line magics:\n%alias %alias_magic %autocall %automagic %autosave %bookmark %cat %cd %clear %colors %config %connect_info %cp %debug %dhist %dirs %doctest_mode %ed %edit %env %gui %hist %history %install_default_config %install_ext %install_profiles %killbgscripts %ldir %less %lf %lk %ll %load %load_ext %loadpy %logoff %logon %logstart %logstate %logstop %ls %lsmagic %lx %macro %magic %man %matplotlib %mkdir %more %mv %notebook %page %pastebin %pdb %pdef %pdoc %pfile %pinfo %pinfo2 %popd %pprint %precision %profile %prun %psearch %psource %pushd %pwd %pycat %pylab %qtconsole %quickref %recall %rehashx %reload_ext %rep %rerun %reset %reset_selective %rm %rmdir %run %save %sc %store %sx %system %tb %time %timeit %unalias %unload_ext %who %who_ls %whos %xdel %xmode\n\nAvailable cell magics:\n%%! %%HTML %%SVG %%bash %%capture %%debug %%file %%html %%javascript %%latex %%perl %%prun %%pypy %%python %%python2 %%python3 %%ruby %%script %%sh %%svg %%sx %%system %%time %%timeit %%writefile\n\nAutomagic is ON, % prefix IS NOT needed for line magics.'}, u'metadata': {}}}, u'user_variables': {}}
[IPythonQtConsoleApp] execute: {u'status': u'ok', u'execution_count': 0, u'payload': [], u'user_expressions': {}, u'user_variables': {}}
Traceback (most recent call last):
File "/Users/kratsg/.virtualenvs/ip/lib/python2.7/site-packages/IPython/qt/console/frontend_widget.py", line 60, in highlightBlock
super(FrontendHighlighter, self).highlightBlock(string)
File "/Users/kratsg/.virtualenvs/ip/lib/python2.7/site-packages/IPython/qt/console/pygments_highlighter.py", line 115, in highlightBlock
for token, text in self._lexer.get_tokens(string):
File "/Users/kratsg/.virtualenvs/ip/lib/python2.7/site-packages/pygments/lexer.py", line 192, in streamer
for i, t, v in self.get_tokens_unprocessed(text):
File "/Users/kratsg/.virtualenvs/ip/lib/python2.7/site-packages/IPython/qt/console/pygments_highlighter.py", line 30, in get_tokens_unprocessed
for item in action(self, m):
TypeError: 'NoneType' object is not callable
If you suspect this is an IPython bug, please report it at:
https://github.com/ipython/ipython/issues
or send an email to the mailing list at [email protected]
You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.
Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
c.Application.verbose_crash=True
[IPythonQtConsoleApp] Polling kernel...
[IPythonQtConsoleApp] Polling kernel...
[IPythonQtConsoleApp] Exiting application: ipython-qtconsole
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment