<div dir="ltr"><div>See the grass-session section in the wiki:</div><div><a href="https://grasswiki.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly#Python:_GRASS_GIS_7_with_an_external_library:_grass-session">https://grasswiki.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly#Python:_GRASS_GIS_7_with_an_external_library:_grass-session</a></div><div><br></div><div>Vero<br></div></div><br><div class="gmail_quote"><div dir="ltr">El mié., 6 jun. 2018 a las 13:00, Ken Mankoff (<<a href="mailto:mankoff@gmail.com">mankoff@gmail.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div><span></span></div><div><div>Any Python install and "grass-session" works well: <a href="https://github.com/zarch/grass-session" target="_blank">https://github.com/zarch/grass-session</a><br><br> -k. <div><br></div><div>Please excuse brevity. Sent from pocket computer with tiny non-haptic feedback keyboard. </div></div><div><br>On 1 Jun 2018, at 19.25, Moody, Alex <<a href="mailto:Alex.Moody@idwr.idaho.gov" target="_blank">Alex.Moody@idwr.idaho.gov</a>> wrote:<br><br></div><div><span></span></div><blockquote type="cite"><div>
<div class="m_-2495130304449555534WordSection1">
<p class="MsoNormal">I occasionally try to use GRASS via the Spyder IDE but have not found a solution that works so far. I am working in Windows 7 with various versions of GRASS (72, 74, 75) through the OSGEO install. My attempts include<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="m_-2495130304449555534MsoListParagraph"><span>1.<span style="font:7.0pt "Times New Roman"">
</span></span>Manually installing Spyder into the OSGEO python site-packages directory. When I run spyder after launching a GRASS session or from the OSGEO shell, nothing happens. I’ve seen the Wiki page discussing Spyder that mentions the command
<span style="font-family:"Courier New"">spyder –w . 2>dev/null &,</span> though I am not sure what this is attempting to do<u></u><u></u></p>
<p class="m_-2495130304449555534MsoListParagraph"><span>2.<span style="font:7.0pt "Times New Roman"">
</span></span>Making a conda environment and using subprocess per the Wiki. I imagine this fails because GRASS isn’t install in this environment. I wonder if there is a way to set the environment to use the GRASS python executable?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Has anyone had success using Spyder that could offer some further pointers?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal">Alex <u></u><u></u></p>
</div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>grass-user mailing list</span><br><span><a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a></span><br><span><a href="https://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-user</a></span></div></blockquote></div></div>_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-user</a></blockquote></div>