# python hints/autocompletion in IDE

**URL:** https://discourse.itk.org/t/python-hints-autocompletion-in-ide/4670
**Category:** Beginner Questions
**Tags:** python, wrapping, autocompletion
**Created:** [December 13, 2021, 12:39pm UTC](https://discourse.itk.org/t/python-hints-autocompletion-in-ide/4670 "2021-12-13T12:39:06Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Gabriele\_Belotti](https://discourse.itk.org/user_avatar/discourse.itk.org/gabriele_belotti/32/825_2.png) [@Gabriele\_Belotti](https://discourse.itk.org/u/Gabriele_Belotti)
#### Post date: [December 13, 2021, 12:39pm UTC](https://discourse.itk.org/t/python-hints-autocompletion-in-ide/4670/1 "2021-12-13T12:39:06Z")

</div>

Hi everyone, i managed to build itk with python wrappers on a win10 machine using visual studio 2017. However I am not getting the full hints after importing itk in a visual studio code IDE.

I built master at [ENH: Generate stub-files to support type hints · InsightSoftwareConsortium/ITK@faa3ab0 · GitHub](https://github.com/InsightSoftwareConsortium/ITK/commit/faa3ab0a7e36ad82ad9c817e282bea48e2ac380c) commit

I can run any code I previously wrote, but for some reason I can’t get autocompletion suggestion other than the quick wraps like imread, imwrite, etc.  
For instance I can’t get `itk.FlatStructuringElement` to be suggested, ora any filter type for that matter.

Am I getting this wrong? Should I move to a more recent commit? I’ve tried building from scratch since the issue was relevant in the pip distribution.

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [December 13, 2021, 3:14pm UTC](https://discourse.itk.org/t/python-hints-autocompletion-in-ide/4670/2 "2021-12-13T15:14:19Z")

</div>

@kjweimer and @hjmjohnson might be able to help.

What IDE are you using? I know that only PyCharm is advertised as currently supported. If I remember correctly, we would like to expand that.

---

<div class="post-metadata">

### Author: ![Gabriele\_Belotti](https://discourse.itk.org/user_avatar/discourse.itk.org/gabriele_belotti/32/825_2.png) [@Gabriele\_Belotti](https://discourse.itk.org/u/Gabriele_Belotti)
#### Post date: [December 13, 2021, 3:29pm UTC](https://discourse.itk.org/t/python-hints-autocompletion-in-ide/4670/3 "2021-12-13T15:29:04Z")

</div>

Ok, I was worried it may be an IDE issue. Right now I am using VS Code with a python add-on for pylance and other tools. I’ll try my hands on PyCharm and update you.  
Thanks for the reply!

---

<div class="post-metadata">

### Author: ![Gabriele\_Belotti](https://discourse.itk.org/user_avatar/discourse.itk.org/gabriele_belotti/32/825_2.png) [@Gabriele\_Belotti](https://discourse.itk.org/u/Gabriele_Belotti)
#### Post date: [December 13, 2021, 4:00pm UTC](https://discourse.itk.org/t/python-hints-autocompletion-in-ide/4670/4 "2021-12-13T16:00:17Z")

</div>

Ok PyCharm is better but it still doesn’t handle all available suggestions, this is possibly due to the fact that I’m not using conda or other virtual environments as well?

---

<div class="post-metadata">

### Author: ![hjmjohnson](https://discourse.itk.org/user_avatar/discourse.itk.org/hjmjohnson/32/23_2.png) [@hjmjohnson](https://discourse.itk.org/u/hjmjohnson)
#### Post date: [December 13, 2021, 4:19pm UTC](https://discourse.itk.org/t/python-hints-autocompletion-in-ide/4670/5 "2021-12-13T16:19:59Z")

</div>

We are using pycharm, but any IDE or tool that supports .pyi files should benefit.

Hans
