Skip to content
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

fix for jupyterDebugger #7695

Merged
merged 2 commits into from
Sep 28, 2021
Merged

fix for jupyterDebugger #7695

merged 2 commits into from
Sep 28, 2021

Conversation

DavidKutu
Copy link

@DavidKutu DavidKutu commented Sep 28, 2021

Part 2 of #7689

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
  • Title summarizes what is changing.
  • Has a news entry file (remember to thank yourself!).
  • Appropriate comments and documentation strings in the code.
  • Has sufficient logging.
  • Has telemetry for enhancements.
  • Unit tests & system/integration tests are added/updated.
  • Test plan is updated as appropriate.
  • package-lock.json has been regenerated by running npm install (if dependencies have changed).

@DavidKutu DavidKutu requested a review from a team as a code owner September 28, 2021 00:03
'>=6.0.0',
notebook.getKernelConnection()?.interpreter
);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe put this into a common function somewhere?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would make it easier to handle the case where the ipykernel version is greater than 10.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yees, I thought this was urgent but it isn't.
So I'll add it here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree this should be some common code,

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can leave this here and fix in debt week or fix this now, i leave that upto you.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If not doing now, please file an issue so we don't forget (to fix in debt week)

const output = await kernel.executeHidden(code);

if (output[0].text) {
const majorVersion = Number(output[0].text.toString().charAt(0));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be something already to parse semvers I think? Yeah it's an npm module for parsing them.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aren't python modules not strict on semver though? Lemme look that up quick. Might not be safe to use.

Copy link
Contributor

@DonJayamanne DonJayamanne Sep 28, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's correct
& I think looking at chat(0) is good enough (personally i think this is the best), better than unnecessarily pull in semver or other stuff, but we'll need to address the version hitting 10, at that point it till be 1. we could always do the necessary parsing in python code as well. Either or...something for debt week.

-split string to get more than 1 char of the major version
@codecov-commenter
Copy link

Codecov Report

Merging #7695 (9faa633) into main (8c5cbef) will decrease coverage by 0%.
The diff coverage is 30%.

❗ Current head 9faa633 differs from pull request most recent head 9d4a204. Consider uploading reports for the commit 9d4a204 to get more accurate results

@@          Coverage Diff          @@
##            main   #7695   +/-   ##
=====================================
- Coverage     68%     68%   -1%     
=====================================
  Files        363     363           
  Lines      22590   22594    +4     
  Branches    3437    3438    +1     
=====================================
- Hits       15542   15522   -20     
- Misses      5716    5731   +15     
- Partials    1332    1341    +9     
Impacted Files Coverage Δ
src/client/datascience/jupyter/jupyterDebugger.ts 18% <30%> (-9%) ⬇️
.../client/datascience/debugLocationTrackerFactory.ts 42% <0%> (-8%) ⬇️
...datascience/editor-integration/cellhashprovider.ts 70% <0%> (-2%) ⬇️
src/client/datascience/raw-kernel/rawSocket.ts 82% <0%> (-2%) ⬇️
...client/datascience/kernel-launcher/kernelDaemon.ts 56% <0%> (-2%) ⬇️
...datascience/editor-integration/codelensprovider.ts 71% <0%> (-1%) ⬇️
src/client/datascience/jupyter/jupyterNotebook.ts 25% <0%> (-1%) ⬇️
src/client/datascience/webviews/webviewHost.ts 77% <0%> (ø)
src/client/datascience/jupyter/kernelVariables.ts 51% <0%> (ø)
... and 2 more

@DavidKutu DavidKutu merged commit 820947e into main Sep 28, 2021
@DavidKutu DavidKutu deleted the david/useKernelPart2 branch September 28, 2021 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants