mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-20 11:56:12 +00:00
Fix Error when shutting down Jupyter
This commit is contained in:
parent
2da95c6853
commit
5f9018f5b9
@ -11,7 +11,6 @@ class IPyKernelInterfaceJupyter:
|
|||||||
self._id = id
|
self._id = id
|
||||||
|
|
||||||
def send_signal(self, signum):
|
def send_signal(self, signum):
|
||||||
print("sending signal " + str(signum) + " to kernel")
|
|
||||||
cutter_internal.kernel_interface_send_signal(self._id, signum)
|
cutter_internal.kernel_interface_send_signal(self._id, signum)
|
||||||
|
|
||||||
def kill(self):
|
def kill(self):
|
||||||
@ -101,6 +100,7 @@ class CutterNotebookApp(NotebookApp):
|
|||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
super().stop()
|
super().stop()
|
||||||
|
if self.thread is not None:
|
||||||
self.thread.join()
|
self.thread.join()
|
||||||
|
|
||||||
def init_signal(self):
|
def init_signal(self):
|
||||||
@ -120,6 +120,7 @@ def start_jupyter():
|
|||||||
asyncio.set_event_loop(asyncio.new_event_loop())
|
asyncio.set_event_loop(asyncio.new_event_loop())
|
||||||
app = CutterNotebookApp()
|
app = CutterNotebookApp()
|
||||||
# app.log_level = logging.DEBUG
|
# app.log_level = logging.DEBUG
|
||||||
|
app.thread = threading.current_thread()
|
||||||
app.initialize()
|
app.initialize()
|
||||||
q.put(app)
|
q.put(app)
|
||||||
app.start()
|
app.start()
|
||||||
|
Loading…
Reference in New Issue
Block a user