1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
Description: Do not attempt to access 'kernel' attr in QtKernelManager
Updates to qtconsole.manager have removed the 'kernel' attribute, so do not
attempt to use it and use default setting for GUI
Author: Nick Morrott <nickm@debian.org>
Bug: https://github.com/mu-editor/mu/issues/2036
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1005259
Last-Update: 2022-02-14
---
--- a/mu/interface/main.py
+++ b/mu/interface/main.py
@@ -460,7 +460,6 @@
"""
Adds a Jupyter based REPL pane to the application.
"""
- kernel_manager.kernel.gui = 'qt4'
kernel_client.start_channels()
ipython_widget = JupyterREPLPane()
ipython_widget.kernel_manager = kernel_manager
--- a/tests/interface/test_main.py
+++ b/tests/interface/test_main.py
@@ -812,7 +812,6 @@
mock_pane_class.assert_called_once_with()
assert mock_pane.kernel_manager == mock_kernel_manager
assert mock_pane.kernel_client == mock_kernel_client
- assert mock_kernel_manager.kernel.gui == 'qt4'
w.add_repl.assert_called_once_with(mock_pane, 'Python3 (Jupyter)')
|