vscode-jupyter
vscode-jupyter copied to clipboard
Install modules from the missing module error
I was running a new notebook and didn't have seaborn in my current env. I get the Missing module warning when I execute the cell. From that warning (or from a popup) I'd like for vscode to install that module for me.
Possible: We already look at imports when we open, match up against current env list and offer to install missing modules?
That would be very usefull. PyCharm has this feature, it saves us lot of time
+1 :)
Did this never get any traction?
Or is this a duplicate issue?
Today in VSCode 1.51.1, with Python 2020.11.37..., and PyLance 2020.12.0, it auto imported something from my current project, but it did not import a system module "os", even though PyLance it warns about "os" not being defined.
This feature saves a lot of time and headaches.
Is there any news on this issue?
I think we could do something simple to start with here. On a ModuleNotFound error add a link to create a cell to resolve the problem.
That would insert a cell with code like so:
%pip install modulename
or
%conda install modulename
The user would then have to explicitly run the cell themselves, but it at least shows them what they have to do (and uses the %pip instead of !pip)
Any updates on it.
Hello! Any updates on this?
Thank you...
You can look at our iteration plan to see if we plan to do something in the next month or so. It's always pinned to the top of our issues https://github.com/microsoft/vscode-jupyter/issues
Or look at the milestone on the issue itself.
This issue is not a high priority at the moment though.
Im also suffering from this issue, probably will switch to pycharm because of that :(
any updates on this highly convenient feature request for efficient coding?
Hi this function will be great! Please add it
How does this not exist yet??
Cannot understand why this is considered low priority. Manually adding imports that are flagged as missing by pylint is a real waste of time. Pycharm users ridicule us for having to do it manually. I do love VSCode and recommend it all the time but this is so disappointing. Cmon guys! :)
Eagerly waiting for this basic feature. Please don't make us go back to Pycharm.
i found this extension as a copium the issue is from 2019 man
i found this extension as a copium the issue is from 2019 man
FYI after installing the extension myself I found that It hasnt been updated for a long time as I had to recreate extension.js code modifications as per https://marketplace.visualstudio.com/items?itemName=PeterSteiner.pip-installer&ssr=false#qna John Cutburth posts (in my case the first post was sufficient) in order to add a wait to the activate function install missing to use this import installer with VENV's