Make Jupyter an optional dependency#16267
Conversation
| const packageJsonContents = await fsExtra.readFile('package.json', 'utf-8'); | ||
| const packageJson = JSON.parse(packageJsonContents); | ||
| packageJson.extensionPack = ['ms-python.vscode-pylance'].concat( | ||
| packageJson.extensionPack = ['ms-toolsai.jupyter', 'ms-python.vscode-pylance'].concat( |
There was a problem hiding this comment.
why not hardcode this in package.json instead of injecting this during build time?
There was a problem hiding this comment.
+1. That should work. Since these are optional dependencies they should not affect debugging like required dependencies did.
There was a problem hiding this comment.
Are we ok with hardcoding them now? There were some concerns about hardcoding Pylance when we added it.
There was a problem hiding this comment.
Discussed with @brettcannon, not going to hardcode this, as we would prefer keeping the package.json dependency-free, and add them at build time instead.
| const packageJson = JSON.parse(packageJsonContents); | ||
| packageJson.extensionPack = ['ms-python.vscode-pylance'].concat( | ||
| packageJson.extensionPack = ['ms-toolsai.jupyter', 'ms-python.vscode-pylance'].concat( | ||
| packageJson.extensionPack ? packageJson.extensionPack : [], |
There was a problem hiding this comment.
| packageJson.extensionPack ? packageJson.extensionPack : [], | |
| packageJson.extensionPack || [], |
There was a problem hiding this comment.
If we follow the previous comment this won't be needed.
Co-authored-by: Kartik Raj <karraj@microsoft.com>
* 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>
For #16102