vscode-jupyter: Don't activate Python extension until needed (Tests Needed)

Issue Type: Bug

When I startup VS Code I get this in a workspace that exclusively contains markdown files. This is the only window I have open. Why?

image

Extension version: 2021.2.636928669 VS Code version: Code - Insiders 1.55.0-insider (Universal) (9b2ee7fb7d970b9a628fdb3545bdd01d67078d16, 2021-03-11T05:15:23.749Z) OS version: Darwin arm64 20.3.0

System Info
Item Value
CPUs undefined
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 2, 3, 2
Memory (System) 16.00GB (0.28GB free)
Process Argv –enable-proposed-api lszomoru.lszomoru-proposed-api-sample --crash-reporter-id ef10dfea-3602-4c74-ba1a-109ce7da7825
Screen Reader no
VM 0%
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368:30146709
vsreu685:30147344
python383:30185418
pythonvspyt602:30263608
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstry244:30244315
pythonvsdeb440:30224570
pythonvsded773:30223139
pythonvspyt875:30259475
pythonvsnew554:30265444
pythontb:30258533
vscoresta800:30265947
vspre833:30267464

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 33 (33 by maintainers)

Most upvoted comments

I’d strongly prefer for it not to be a separate extension. I believe there are other ways we can solve that (e.g. through an npm package?).

My main concern regarding the separate extension is that it IMO adds unnecessary complexity to the UX of installation of the Python extension.

Suppose we did have a “Python Environments” extension. We’d need other functionality like the start page, start REPL and things like that be somewhere else. What would we call that extension, and how would users understand how that is different from the Python environments one? We have some users complaining about the extra entry for the Jupyter extension in their installed extensions view, I imagine a lot of people would be annoyed and confused about this extra one too.

I can see us breaking the extension down into formatters and linters and even having a pytest extension instead of a built-in solution. But I’m struggling to see the user value in having a “Python Environments” and a “Python core” extension.

Notebook seems okay to load the python extension. It just shouldn’t load in a directory with markdown files.