---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-1-40e56dfd9e84> in <module>()
----> 1 get_ipython().magic('load_ext groovy_magic')
~/anaconda/envs/beakerx/lib/python3.5/site-packages/IPython/core/interactiveshell.py in magic(self, arg_s)
2144 magic_name, _, magic_arg_s = arg_s.partition(' ')
2145 magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
-> 2146 return self.run_line_magic(magic_name, magic_arg_s)
2147
2148 #-------------------------------------------------------------------------
~/anaconda/envs/beakerx/lib/python3.5/site-packages/IPython/core/interactiveshell.py in run_line_magic(self, magic_name, line)
2065 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
2066 with self.builtin_trap:
-> 2067 result = fn(*args,**kwargs)
2068 return result
2069
<decorator-gen-65> in load_ext(self, module_str)
~/anaconda/envs/beakerx/lib/python3.5/site-packages/IPython/core/magic.py in <lambda>(f, *a, **k)
185 # but it's overkill for just that one bit of state.
186 def magic_deco(arg):
--> 187 call = lambda f, *a, **k: f(*a, **k)
188
189 if callable(arg):
~/anaconda/envs/beakerx/lib/python3.5/site-packages/IPython/core/magics/extension.py in load_ext(self, module_str)
31 if not module_str:
32 raise UsageError('Missing module name.')
---> 33 res = self.shell.extension_manager.load_extension(module_str)
34
35 if res == 'already loaded':
~/anaconda/envs/beakerx/lib/python3.5/site-packages/IPython/core/extensions.py in load_extension(self, module_str)
90 dir=compress_user(self.ipython_extension_dir)))
91 mod = sys.modules[module_str]
---> 92 if self._call_load_ipython_extension(mod):
93 self.loaded.add(module_str)
94 else:
~/anaconda/envs/beakerx/lib/python3.5/site-packages/IPython/core/extensions.py in _call_load_ipython_extension(self, mod)
137 def _call_load_ipython_extension(self, mod):
138 if hasattr(mod, 'load_ipython_extension'):
--> 139 mod.load_ipython_extension(self.shell)
140 return True
141
~/src/beakerx/beakerx/groovy_magic.py in load_ipython_extension(ipython)
16
17 def load_ipython_extension(ipython):
---> 18 ipython.register_magics(GroovyMagics)
19
20 def unload_ipython_extension(ipython):
~/anaconda/envs/beakerx/lib/python3.5/site-packages/IPython/core/magic.py in register(self, *magic_objects)
384 if isinstance(m, type):
385 # If we're given an uninstantiated class
--> 386 m = m(shell=self.shell)
387
388 # Now that we have an instance, we can register it and update the
~/src/beakerx/beakerx/beakerx/groovy_magic.py in __init__(self, shell)
32
33 try:
---> 34 self.kc.wait_for_ready()
35 print("Groovy started successfully\n")
36 except AttributeError:
~/anaconda/envs/beakerx/lib/python3.5/site-packages/jupyter_client/blocking/client.py in wait_for_ready(self, timeout)
118
119 if not self.is_alive():
--> 120 raise RuntimeError('Kernel died before replying to kernel_info')
121
122 # Check if current time is ready check time plus timeout
RuntimeError: Kernel died before replying to kernel_info