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

Pip install DS packages if Python ext fails #8326

Merged
merged 5 commits into from
Nov 23, 2021

Conversation

DonJayamanne
Copy link
Contributor

For #8325

| 'dismissed'; // User chose to dismiss the prompt.
resourceType?: 'notebook' | 'interactive';
/**
* Hash of the resource (notebook.uri or pythonfile.uri associated with this).
* If we run the same notebook tomorrow, the hash will be the same.
*/
resourceHash?: string;
pythonEnvType?: EnvironmentType;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Better telemetry, to easily identify what environments don't work.

return false;
}
// Check if pip is installed.
const isPipInstalled = await this.isInstalled(Product.pip, interpreter);
Copy link
Contributor Author

@DonJayamanne DonJayamanne Nov 22, 2021

Choose a reason for hiding this comment

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

For now we're only going to install DS pacakges via Pip for Global python environments.
(based on the new telemetry if this works, we can extend this to others & look at whats going on in terminals for python extension)

@DonJayamanne DonJayamanne force-pushed the pipInstallIpyKernelInJupyter branch from c9dea22 to 2217c6d Compare November 22, 2021 20:51
@codecov-commenter
Copy link

Codecov Report

Merging #8326 (c9dea22) into main (40e744f) will decrease coverage by 0%.
The diff coverage is 30%.

❗ Current head c9dea22 differs from pull request most recent head 2217c6d. Consider uploading reports for the commit 2217c6d to get more accurate results

@@          Coverage Diff           @@
##            main   #8326    +/-   ##
======================================
- Coverage     72%     71%    -1%     
======================================
  Files        373     374     +1     
  Lines      23323   23424   +101     
  Branches    3570    3584    +14     
======================================
+ Hits       16844   16853     +9     
- Misses      5029    5116    +87     
- Partials    1450    1455     +5     
Impacted Files Coverage Δ
...cience/data-viewing/dataViewerDependencyService.ts 87% <ø> (ø)
...interpreter/jupyterInterpreterDependencyService.ts 75% <ø> (ø)
...science/jupyter/kernels/kernelDependencyService.ts 82% <ø> (ø)
src/client/telemetry/index.ts 63% <ø> (ø)
src/client/common/installer/backupPipInstaller.ts 28% <28%> (ø)
src/client/common/installer/productInstaller.ts 57% <34%> (-5%) ⬇️
src/client/common/utils/localize.ts 95% <100%> (+<1%) ⬆️
...ent/datascience/jupyter/pythonVariableRequester.ts 68% <0%> (-6%) ⬇️
...tascience/jupyter/kernels/kernelCommandListener.ts 66% <0%> (-4%) ⬇️
src/client/datascience/jupyter/kernelVariables.ts 56% <0%> (-3%) ⬇️
... and 5 more

@DonJayamanne DonJayamanne marked this pull request as ready for review November 23, 2021 00:01
@DonJayamanne DonJayamanne requested a review from a team as a code owner November 23, 2021 00:01
@DonJayamanne DonJayamanne merged commit 5c76830 into main Nov 23, 2021
@DonJayamanne DonJayamanne deleted the pipInstallIpyKernelInJupyter branch November 23, 2021 00:01
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.

2 participants