[IPKernelApp] ERROR | Exception in control handler:
Traceback (most recent call last):
File "/Users/jni/conda/envs/all/lib/python3.8/site-packages/ipykernel/kernelbase.py", line 201, in dispatch_control
yield gen.maybe_future(handler(self.control_stream, idents, msg))
File "/Users/jni/conda/envs/all/lib/python3.8/site-packages/tornado/gen.py", line 735, in run
value = future.result()
File "/Users/jni/conda/envs/all/lib/python3.8/site-packages/tornado/gen.py", line 209, in wrapper
yielded = next(result)
File "/Users/jni/conda/envs/all/lib/python3.8/site-packages/ipykernel/kernelbase.py", line 683, in shutdown_request
content = yield gen.maybe_future(self.do_shutdown(parent['content']['restart']))
File "/Users/jni/conda/envs/all/lib/python3.8/site-packages/ipykernel/ipkernel.py", line 450, in do_shutdown
self.shell.exit_now = True
File "/Users/jni/conda/envs/all/lib/python3.8/site-packages/traitlets/traitlets.py", line 585, in __set__
self.set(obj, value)
File "/Users/jni/conda/envs/all/lib/python3.8/site-packages/traitlets/traitlets.py", line 574, in set
obj._notify_trait(self.name, old_value, new_value)
File "/Users/jni/conda/envs/all/lib/python3.8/site-packages/traitlets/traitlets.py", line 1134, in _notify_trait
self.notify_change(Bunch(
File "/Users/jni/conda/envs/all/lib/python3.8/site-packages/traitlets/traitlets.py", line 1176, in notify_change
c(change)
File "/Users/jni/conda/envs/all/lib/python3.8/site-packages/ipykernel/zmqshell.py", line 476, in _update_exit_now
exit_hook(self.kernel)
File "/Users/jni/conda/envs/all/lib/python3.8/site-packages/ipykernel/eventloops.py", line 136, in loop_qt_exit
kernel.app.exit()
AttributeError: 'IPythonKernel' object has no attribute 'app'
Out[6]:
{'cells': [{'cell_type': 'code',
'execution_count': 1,
'metadata': {'execution': {'iopub.status.busy': '2020-08-10T13:24:48.262059Z',
'iopub.execute_input': '2020-08-10T13:24:48.262847Z',
'iopub.status.idle': '2020-08-10T13:24:48.354775Z',
'shell.execute_reply': '2020-08-10T13:24:48.356131Z'}},
'outputs': [],
'source': '%gui qt\n%matplotlib qt'},
{'cell_type': 'code',
'execution_count': 2,
'metadata': {'execution': {'iopub.status.busy': '2020-08-10T13:24:48.359983Z',
'iopub.execute_input': '2020-08-10T13:24:48.360516Z',
'iopub.status.idle': '2020-08-10T13:24:48.537911Z',
'shell.execute_reply': '2020-08-10T13:24:48.538351Z'}},
'outputs': [{'output_type': 'execute_result',
'metadata': {},
'data': {'text/plain': '<matplotlib.collections.PathCollection at 0x7f837a09feb0>'},
'execution_count': 2}],
'source': 'import matplotlib.pyplot as plt\nimport numpy as np\n\n\nplt.scatter(*np.random.random((2, 10)))'}],
'metadata': {'kernelspec': {'display_name': 'Python 3',
'language': 'python',
'name': 'python3'},
'language_info': {'name': 'python',
'version': '3.8.2',
'mimetype': 'text/x-python',
'codemirror_mode': {'name': 'ipython', 'version': 3},
'pygments_lexer': 'ipython3',
'nbconvert_exporter': 'python',
'file_extension': '.py'}},
'nbformat': 4,
'nbformat_minor': 4}