-
Notifications
You must be signed in to change notification settings - Fork 298
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
Use the kernel to check for ipykernel 6 version, instead of the python installer #7689
Conversation
…n installer. This works for both local and remote.
|
||
const checkCompatible = () => | ||
this.pythonInstaller.isProductVersionCompatible(Product.ipykernel, '>=6.0.0', interpreter); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for caching or the python installer anymore, this is just faster.
Codecov Report
@@ Coverage Diff @@
## main #7689 +/- ##
=====================================
- Coverage 68% 68% -1%
=====================================
Files 363 363
Lines 22582 22590 +8
Branches 3435 3437 +2
=====================================
- Hits 15525 15521 -4
- Misses 5719 5727 +8
- Partials 1338 1342 +4
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about the same cehck in startDebugging
of JupyterDebugger.ts
oops, I'll open another PR |
|
||
if (output[0].text) { | ||
const majorVersion = Number(output[0].text.toString().charAt(0)); | ||
const result = majorVersion >= 6; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will work until ipykernel gets to version 10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OMG, thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed in #7695
This works for both local and remote.
For #7576
package-lock.json
has been regenerated by runningnpm install
(if dependencies have changed).