The bar that shows current kernel/environment flashes as interactive window launches, and then completely disappears.
In the Interactive Window, on top of control buttons, there used to be a bar that shows current kernel/environment, which you can click on and switch if needed.
_Please provide as much info as you readily know_
Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer, @joyceerhl
Hi @elvissey1984, thanks for reporting this. We received feedback that it was confusing to have both a kernel selector in the top right of the interactive window, as well as an interpreter selector in the bottom left of the VSCode window. As a result, we have deprecated the kernel selector in the top right of the IW for local Jupyter connections only (you will still see the bar for remote connections).
You can change your local Jupyter kernel by running Ctrl+Shift+P to bring up the command palette, and typing 'Python: Select Python Interpreter'. This should allow you to select a different active Python interpreter, and the next IW that you create will use your newly-selected Python environment (you will have to close and reopen your existing window if any for the new selection to take effect).
Please let us know if this works for you--this change was meant to simplify things for our users and remove confusion, and we want to hear your feedback!
Thanks for the update! Let’s say if I’m in the middle of some work, in the old times if I use the old selector to switch an environment then the kernel restarts and switches to the selected one. Now if I do that at the status bar (or Ctrl+shift+p) it doesn’t switch - it seems I would have to do it before I launch the interactive window, and if I want to switch I would have to close the interactive window first, select a new kernel, and start again the interactive window.
Is that the desired behavior?
From: Joyce Er notifications@github.com
Sent: Tuesday, September 29, 2020 2:02:01 AM
To: microsoft/vscode-python vscode-python@noreply.github.com
Cc: elvissey1984 xiaolun.cheng@outlook.com; Mention mention@noreply.github.com
Subject: Re: [microsoft/vscode-python] Environment Selection bar disappeared in Interactive Window (#14126)
Hi @elvissey1984https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Felvissey1984&data=02%7C01%7C%7C985253325b3546ea9c6508d8640ae4ce%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637369345229489474&sdata=dnBP4DBjw8w1yies%2Bg1ml7%2FdITrJhDjUDPaSn3UraYs%3D&reserved=0, thanks for reporting this. We received feedback that it was confusing to have both a kernel selector in the top right of the interactive window, as well as an interpreter selector in the bottom left of the VSCode window. As a result, we have deprecated the kernel selector in the top right of the IW for local Jupyter connections only (you will still see the bar for remote connections). You can change your local Jupyter kernel by running Ctrl+Shift+P to bring up the command palette, and typing 'Python: Select Python Interpreter'. This should allow you to set your active Python interpreter.
Please let us know if this works for you--this change was meant to simplify things for our users and remove confusion, and we want to hear your feedback!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode-python%2Fissues%2F14126%23issuecomment-700344762&data=02%7C01%7C%7C985253325b3546ea9c6508d8640ae4ce%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637369345229499471&sdata=uVftQHdzxn%2FuySP%2BUV6i%2FQtgqdD5wWDr8j8jjhoa89A%3D&reserved=0, or unsubscribehttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJDT6T4DORSWENJISZKZ4QLSIEPXTANCNFSM4R4MINNA&data=02%7C01%7C%7C985253325b3546ea9c6508d8640ae4ce%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637369345229509470&sdata=rMoXWiOaZRTXvPxM1ndsDHQUgCrovc4AcuIb%2F9REHlM%3D&reserved=0.
That is the expected behavior as a result of this change. Do you have a preference for the previous experience versus the new one?
Thanks for the reply! I’m indifferent to where I select the kernel (well perhaps slightly in favor of the old way because of habit but that will wear out) - but I would really love to be able to switch to a new kernel quickly with a click of mouse, as it is usually an unavoidable part of my workflow. The current approach feels a bit like a step backward, so much that I thought that is a bug.
From: Joyce Er notifications@github.com
Sent: Tuesday, September 29, 2020 2:47:38 AM
To: microsoft/vscode-python vscode-python@noreply.github.com
Cc: elvissey1984 xiaolun.cheng@outlook.com; Mention mention@noreply.github.com
Subject: Re: [microsoft/vscode-python] Environment Selection bar disappeared in Interactive Window (#14126)
That is the expected behavior as a result of this change. Do you have a preference for the previous experience versus the new one?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode-python%2Fissues%2F14126%23issuecomment-700358648&data=02%7C01%7C%7C4fa9c6701e634efbcb9f08d86411440d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637369372597652809&sdata=l8icB5PKDWBEJwBzR6k9dXbgnUldTIvhh%2B3nZo6BC4E%3D&reserved=0, or unsubscribehttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJDT6T773B5CJR55WVQU6TTSIEVCVANCNFSM4R4MINNA&data=02%7C01%7C%7C4fa9c6701e634efbcb9f08d86411440d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637369372597662806&sdata=BLM8OISzxZyoMJ487wm%2FA9J1M4%2B1HNcLHWNa628V7%2FU%3D&reserved=0.
Thanks for your feedback, that is very helpful to know. Our team will discuss this in greater detail at our weekly triage meeting.
Would like to add another use case, that appears to have been dropped with this change.
I have several kernels using one interpreter. These are in ~/.local/share/jupyter/kernels, and some are manually edited (e.g. to include environmental variables). Previously I was able to select the specific kernel from there, but with this new approach I no longer have that flexibility.
I would also second @elvissey1984 's point about quickly selecting the kernel, and also knowing which one you're using at the moment. Once again, I'm not sure how many people have different kernels under the same interpreter, but this functionality has been lost
Current thoughts:
More discussion will happen over the next couple weeks.