Skip to content

Commit 5addee1

Browse files
committed
fixes #27
1 parent 61fb539 commit 5addee1

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

execnb/_modidx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
'title': 'execnb',
3232
'tst_flags': 'notest',
3333
'user': 'fastai',
34-
'version': '0.1.0'},
34+
'version': '0.1.1'},
3535
'syms': { 'execnb.fastshell': { 'execnb.fastshell.FastInteractiveShell': 'https://fastai.github.io/execnb/fastshell.html#fastinteractiveshell',
3636
'execnb.fastshell.FastInteractiveShell.ask_exit': 'https://fastai.github.io/execnb/fastshell.html#fastinteractiveshell.ask_exit',
3737
'execnb.fastshell.FastInteractiveShell.data_pub': 'https://fastai.github.io/execnb/fastshell.html#fastinteractiveshell.data_pub',

execnb/fastshell.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,15 @@ def autosave(self, arg_s): pass
3232

3333
class FastInteractiveShell(InteractiveShell):
3434
data_pub_class = Any()
35-
kernel = Any()
35+
#kernel = Any()
3636
parent_header = Any()
3737
exiter = Instance(ZMQExitAutocall)
3838

3939
@default('exiter')
4040
def _default_exiter(self): return ZMQExitAutocall(self)
4141

4242
@observe('exit_now')
43-
def _update_exit_now(self, change):
44-
"stop eventloop when exit_now fires"
45-
if change['new']:
46-
if hasattr(self.kernel, 'io_loop'):
47-
loop = self.kernel.io_loop
48-
loop.call_later(0.1, loop.stop)
49-
if self.kernel.eventloop:
50-
exit_hook = getattr(self.kernel.eventloop, 'exit_hook', None)
51-
if exit_hook: exit_hook(self.kernel)
43+
def _update_exit_now(self, change): pass
5244

5345
keepkernel_on_exit = None
5446

0 commit comments

Comments
 (0)