vscode-jupyter icon indicating copy to clipboard operation
vscode-jupyter copied to clipboard

Install modules from the missing module error

Open IanMatthewHuff opened this issue 5 years ago • 16 comments

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?

IanMatthewHuff avatar Oct 17 '19 20:10 IanMatthewHuff

That would be very usefull. PyCharm has this feature, it saves us lot of time

HorselessName avatar Mar 10 '20 13:03 HorselessName

+1 :)

lucianolev avatar Jul 15 '20 15:07 lucianolev

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.

AndrewTrapani avatar Dec 03 '20 19:12 AndrewTrapani

Is there any news on this issue?

FelixKahane avatar Jun 02 '21 10:06 FelixKahane

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)

rchiodo avatar Sep 29 '21 16:09 rchiodo

Any updates on it.

kapilkd13 avatar Feb 20 '22 07:02 kapilkd13

Hello! Any updates on this?

Thank you...

HorselessName avatar Feb 22 '22 14:02 HorselessName

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.

rchiodo avatar Feb 22 '22 17:02 rchiodo

Im also suffering from this issue, probably will switch to pycharm because of that :(

yonbav avatar Jul 27 '22 09:07 yonbav

any updates on this highly convenient feature request for efficient coding?

dev-ro avatar Nov 09 '22 20:11 dev-ro

image Hi this function will be great! Please add it

WerVa avatar Nov 23 '22 10:11 WerVa

How does this not exist yet??

mpr1255 avatar Mar 15 '23 07:03 mpr1255

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! :)

rjalexa avatar Apr 03 '23 08:04 rjalexa

Eagerly waiting for this basic feature. Please don't make us go back to Pycharm.

f2008700 avatar Dec 28 '23 23:12 f2008700

i found this extension as a copium the issue is from 2019 man

TheLime1 avatar Dec 29 '23 15:12 TheLime1

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

johnkennyuk avatar Apr 19 '24 15:04 johnkennyuk