Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IDE autocomplete for pytorch

I'm using Visual Studio Code. Recently tried out Kite. Both of which doesn't seem to have autocomplete for pytorch.

Is is possible with these tools ? If not, can someone suggest an editor that does ?

Thank you!

like image 215
Quan Vuong Avatar asked Apr 07 '17 21:04

Quan Vuong


2 Answers

Use Pycharm https://www.jetbrains.com/pycharm/
Get Community version, because it is free with debugger and autocomplete. (more than enough for student)

To get autocomplete and run/debug the code on Pycharm IDE, you have to set correct project interpreter path to your environment (or virtual environment) which you install pytorch

The screenshot shows that I set Project Interpreter path to conda environment named 'pytorch', which I install Pytorch. enter image description here

like image 60
Haha TTpro Avatar answered Nov 16 '22 23:11

Haha TTpro


Spyder does autocomplete for PyTorch as well

like image 1
Lelik Avatar answered Nov 17 '22 01:11

Lelik