With ropemacs you can do something like this:
M-x rope-auto-import
This analyze the code (I presume) and imports missing modules, for example if I write:
datetime.now()
it should do the import for me by add this line:
from datetime import datetime
(it always uses the from ... import ...
form)
Is there a similar function in emacs-jedi?
rope-auto-import
does. – Rhinelandpalatinatepy-isort
: #3839015 Nothing's perfect though. – Squirearchyrope-auto-import
? – Zoan