[GRASS-dev] grass on osgeo4w and spyder

Hi devs,

Has any of you experience in running Spyder (or any other Python IDE)
from the GRASS command line (GRASS installed on Windows 10 with
OSGeo4W)? Any tips for how to set this up?

I can run R/Rstudio from the GRASS command line. Nothing to set up,
just typing in rstudio on the grass gis command line to fire up
rstudio.

That does not work, however, with Spyder (installed with Anaconda). As
an alternative, I tried to install Spyder with pip on the osgeo4w
command line. Installation seems to work, but when typing in spyder3
on the command line, nothing happens.

Best regards,

Paulo

pvanbosgeo wrote

Hi devs,

Has any of you experience in running Spyder (or any other Python IDE)
from the GRASS command line (GRASS installed on Windows 10 with
OSGeo4W)? Any tips for how to set this up?

I can run R/Rstudio from the GRASS command line. Nothing to set up,
just typing in rstudio on the grass gis command line to fire up
rstudio.

That does not work, however, with Spyder (installed with Anaconda). As
an alternative, I tried to install Spyder with pip on the osgeo4w
command line. Installation seems to work, but when typing in spyder3
on the command line, nothing happens.

have a look at

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

it's related to

add python-grass.bat for Python initialization
https://github.com/OSGeo/grass/pull/436

-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html

I can run R/Rstudio from the GRASS command line. Nothing to set up,
just typing in rstudio on the grass gis command line to fire up
rstudio.

I've implemented this by integrating

https://github.com/OSGeo/grass/tree/master/mswindows/external/rbatch

and

by adding some lines to the startup environment

https://github.com/OSGeo/grass/blob/master/mswindows/env.bat#L18

-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html

On Tue, Mar 24, 2020 at 4:31 PM Helmut Kudrnovsky <hellik@web.de> wrote:

pvanbosgeo wrote

Hi devs,

Has any of you experience in running Spyder (or any other Python IDE)
from the GRASS command line (GRASS installed on Windows 10 with
OSGeo4W)? Any tips for how to set this up?

I can run R/Rstudio from the GRASS command line. Nothing to set up,
just typing in rstudio on the grass gis command line to fire up
rstudio.

That does not work, however, with Spyder (installed with Anaconda). As
an alternative, I tried to install Spyder with pip on the osgeo4w
command line. Installation seems to work, but when typing in spyder3
on the command line, nothing happens.

have a look at

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

it’s related to

add python-grass.bat for Python initialization
https://github.com/OSGeo/grass/pull/43

Once you figure out that for Spyder, please consider updating Windows instructions at:

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

Thanks,
Vaclav