Skip to content

Commit 34c54f4

Browse files
luabudbrettcannon
andauthored
No longer install the Jupyter extension by default (#20218)
For #18073 --------- Co-authored-by: Brett Cannon <[email protected]>
1 parent 8d8784f commit 34c54f4

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ Extensions installed through the marketplace are subject to the [Marketplace Ter
3737

3838
## Jupyter Notebook quick start
3939

40-
The Python extension and the [Jupyter extension](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter) work together to give you a great Notebook experience in VS Code.
40+
The Python extension no longer offers support for Jupyter notebooks out of the box. However, it works with the [Jupyter extension](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter) to provide you a great Python notebook experience in VS Code.
41+
42+
- Install the [Jupyter extension](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter).
4143

4244
- Open or create a Jupyter Notebook file (.ipynb) and start coding in our Notebook Editor!
4345

gulpfile.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,13 @@ async function addExtensionPackDependencies() {
8282
// extension dependencies need not be installed during development
8383
const packageJsonContents = await fsExtra.readFile('package.json', 'utf-8');
8484
const packageJson = JSON.parse(packageJsonContents);
85-
packageJson.extensionPack = ['ms-toolsai.jupyter', 'ms-python.vscode-pylance'].concat(
85+
packageJson.extensionPack = ['ms-python.vscode-pylance'].concat(
8686
packageJson.extensionPack ? packageJson.extensionPack : [],
8787
);
88+
// Remove potential duplicates.
89+
packageJson.extensionPack = packageJson.extensionPack.filter(
90+
(item, index) => packageJson.extensionPack.indexOf(item) === index,
91+
);
8892
await fsExtra.writeFile('package.json', JSON.stringify(packageJson, null, 4), 'utf-8');
8993
}
9094

0 commit comments

Comments
 (0)