Skip to content

Conversation

kimadeline
Copy link

@kimadeline kimadeline commented Jun 2, 2021

For #16102

This PR does 2 things:

  • jupyterNotInstalledPrompt -> showJupyterNotInstalledPrompt in src/client/jupyter/jupyterNotInstalledNotificationHelper.ts
  • remove installJupyterExtension from src/client/jupyter/jupyterExtensionDependencyManager.ts

@kimadeline kimadeline added no-changelog No news entry required skip tests Updates to tests unnecessary labels Jun 2, 2021
) {}
constructor(@inject(IExtensions) private extensions: IExtensions) {}

public get isJupyterExtensionInstalled(): boolean {
Copy link
Author

Choose a reason for hiding this comment

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

isJupyterExtensionInstalled still lives here instead of being moved to JupyterNotInstalledNotificationHelper because the latter has one single purpose and it's the notification, while a public-facing way of checking whether the Jupyter extension is installed is a separate responsibility.

@kimadeline kimadeline marked this pull request as ready for review June 2, 2021 19:50
Copy link

@karrtikr karrtikr left a comment

Choose a reason for hiding this comment

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

LGTM other than this clarification.

@kimadeline
Copy link
Author

Insiders failure not related to this PR, merging it.

@kimadeline kimadeline merged commit b8997c8 into microsoft:16102-jupyter-dependency Jun 7, 2021
@kimadeline kimadeline deleted the 16102-standardize-not-installed-message branch June 7, 2021 21:27
karrtikr pushed a commit that referenced this pull request Jun 8, 2021
* Make Jupyter an optional dependency (#16267)

* News entry

* Move Jupyter to the optional dependencies step

* Update news/1 Enhancements/16102.md

Co-authored-by: Kartik Raj <karraj@microsoft.com>

Co-authored-by: Kartik Raj <karraj@microsoft.com>

* License wording update (#16278)

* Wording

* License wording

* Add a "Jupyter not installed" notification helper (#16321)

* Add telemetry info
* Use enum for the telemetry
* Add prompt as a standalone function
* Remove "Install" from the prompt
* Make it a class
* Register singleton
* Rename file to a long but descriptive name
* Unit tests
* Add to package.nls.json
* Use sinon for tests

* Use the same "Jupyter is not installed" message everywhere (#16372)

* rename to showJupyterNotInstalledPrompt

* Replace existing prompt with new prompt

* Remove Jupyter check from command manager

* Update the start page to use the prompt (#16417)

* Update copy

* Update origin key

* Show prompt if jupyter not installed & should show

* Add tests for this functionality only

* Update news entry

* Remove comments

* follow-up from the merge

* Add singletons for startpage functional tests

* Missing one symbol

* Update src/client/common/startPage/startPage.ts

Co-authored-by: Don Jayamanne <don.jayamanne@outlook.com>

* Add logging

Co-authored-by: Don Jayamanne <don.jayamanne@outlook.com>

Co-authored-by: Kartik Raj <karraj@microsoft.com>
Co-authored-by: Don Jayamanne <don.jayamanne@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog No news entry required skip tests Updates to tests unnecessary

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants