[GRASS-dev] [GRASS-user] GRASS python + PyCharm

On Wed, Jun 12, 2019 at 10:49 AM Helmut Kudrnovsky <hellik@web.de> wrote:

Hi,

PyCharm is a nice python IDE.

anyone some experiences to share how to integrate GRASS python (pygrass and
grass script) into the PyCharm IDE environment?

Please add your notes also here then:

https://grasswiki.osgeo.org/wiki/Tools_for_Python_programming#PyCharm_IDE

thanks
Markus

On Wed, Jun 12, 2019 at 5:09 PM Markus Neteler <neteler@osgeo.org> wrote:

On Wed, Jun 12, 2019 at 10:49 AM Helmut Kudrnovsky <hellik@web.de> wrote:

Hi,

PyCharm is a nice python IDE.

anyone some experiences to share how to integrate GRASS python (pygrass and
grass script) into the PyCharm IDE environment?

Please add your notes also here then:

https://grasswiki.osgeo.org/wiki/Tools_for_Python_programming#PyCharm_IDE

Or, if PyCharm allows you to supply custom executable and parameters script execution, you can try to set it up with grass ... --exec. The drawback is that debugger may not support that.

Alternatively, as a combination of both, you can set up a shortcut for “PyCharm with GRASS GIS” using grass --tmp-location XY --exec pycharm. In that case, as in case with running it inside, some Python version/packages issues may arise more likely.

Best,

Vaclav

Vaclav