-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility with ipykernel 7 #623
Comments
Thanks for opening this issue @Carreau. The only test failing is this one: qtconsole/qtconsole/tests/test_inprocess_kernel.py Lines 24 to 31 in c0a1dca
and the problem seems to be that we're not awaiting in qtconsole/qtconsole/tests/test_inprocess_kernel.py Lines 13 to 17 in c0a1dca
given that that method was changed to be async in ipython/ipykernel#1079 However, I tried to do that and @davidbrochart, could you take a look at this one given that you implemented ipython/ipykernel#1079? Thanks! |
Since you need to |
I came to a similar conclusion; So far I found that we need at least diff --git a/qtconsole/tests/test_inprocess_kernel.py b/qtconsole/tests/test_inprocess_kernel.py
index a6f9d86..dbdb634 100644
--- a/qtconsole/tests/test_inprocess_kernel.py
+++ b/qtconsole/tests/test_inprocess_kernel.py
@@ -4,16 +4,21 @@
# Distributed under the terms of the Modified BSD License.
import unittest
-
+import inspect
from qtconsole.inprocess import QtInProcessKernelManager
+import ipykernel
-class InProcessTests(unittest.TestCase):
+class InProcessTests(unittest.IsolatedAsyncioTestCase):
- def setUp(self):
+ async def asyncSetUp(self):
"""Open an in-process kernel."""
self.kernel_manager = QtInProcessKernelManager()
- self.kernel_manager.start_kernel()
+ if ipykernel.version_info >= (7,):
+ await self.kernel_manager.start_kernel()
+ else:
+ self.kernel_manager.start_kernel()
self.kernel_client = self.kernel_manager.client()
def tearDown(self): But did not have time to look much further into it. |
I think that is not sufficient as |
Yes, your |
I dont' use much async, I have this so far: https://github.com/Carreau/qtconsole/tree/async but, it has other issues with the KernelClient saying that self.kernel is None and should not be, but I can't find where kernel is suppoed to be set. |
It looks like qtconsole is not compatible with ipykernel 7,
Unfortunately I've not been following the development, and the previous maintainer stepped down a few month ago, and I'm afraid of the 6.x and 7.x branch diverging.
I would love to get some help get the downstream testing passing on all projects that depends on ipykernel.
cf ipython/ipykernel#1222
The text was updated successfully, but these errors were encountered: