Skip to content

exit() kills the kernel #2

@pya

Description

@pya

Platform: Mac OSX 10.9.5
Versions: Python 3.4.2, IPython 3.0.0-dev, mochi-kernel 0.1.0, mochi 0.1.4

Typing: exit() kills ipython console --kernel mochi and ipython atconsole --kernel mochi and asks for a restart. This is the traceback for console. The one for qtsonsole is the same plus an automatic kernel restart.

In [1]: exit()
ERROR:tornado.general:Uncaught exception, closing connection.
Traceback (most recent call last):
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/zmq/eventloop/zmqstream.py", line 407, in _run_callback
    callback(*args, **kwargs)
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/tornado/stack_context.py", line 275, in null_wrapper
    return fn(*args, **kwargs)
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/IPython/kernel/zmq/kernelbase.py", line 252, in dispatcher
    return self.dispatch_shell(stream, msg)
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/IPython/kernel/zmq/kernelbase.py", line 213, in dispatch_shell
    handler(stream, idents, msg)
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/IPython/kernel/zmq/kernelbase.py", line 360, in execute_request
    user_expressions, allow_stdin)
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/mochikernel/mochikernel.py", line 57, in do_execute
    response = mochi.eval_code_block(code)
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/mochi/mochi.py", line 3064, in eval_code_block
    eval_tokens(lexer)
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/mochi/mochi.py", line 3055, in eval_tokens
    exec(code, global_env)
  File "<string>", line 1, in <module>
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/_sitebuiltins.py", line 26, in __call__
    raise SystemExit(code)
SystemExit: None
ERROR:tornado.general:Uncaught exception, closing connection.
Traceback (most recent call last):
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/zmq/eventloop/zmqstream.py", line 433, in _handle_events
    self._handle_recv()
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/zmq/eventloop/zmqstream.py", line 465, in _handle_recv
    self._run_callback(callback, msg)
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/zmq/eventloop/zmqstream.py", line 407, in _run_callback
    callback(*args, **kwargs)
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/tornado/stack_context.py", line 275, in null_wrapper
    return fn(*args, **kwargs)
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/IPython/kernel/zmq/kernelbase.py", line 252, in dispatcher
    return self.dispatch_shell(stream, msg)
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/IPython/kernel/zmq/kernelbase.py", line 213, in dispatch_shell
    handler(stream, idents, msg)
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/IPython/kernel/zmq/kernelbase.py", line 360, in execute_request
    user_expressions, allow_stdin)
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/mochikernel/mochikernel.py", line 57, in do_execute
    response = mochi.eval_code_block(code)
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/mochi/mochi.py", line 3064, in eval_code_block
    eval_tokens(lexer)
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/mochi/mochi.py", line 3055, in eval_tokens
    exec(code, global_env)
  File "<string>", line 1, in <module>
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/_sitebuiltins.py", line 26, in __call__
    raise SystemExit(code)
SystemExit: None
kernel died, restart ([y]/n)? 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions