<div dir="ltr">Hi, would anyone know how to configure Spyder to work with the QGIS library? I am finding the python editor in QGIS difficult to work with because it has no debugger and I cannot run highlighted code. I have tried a few things:<div><br></div><div>1. created a new conda environment and installed QGIS via conda using: <span class="gmail-pln">conda install </span><span class="gmail-pun">-</span><span class="gmail-pln">c conda</span><span class="gmail-pun">-</span><span class="gmail-pln">forge qgis. However I get errors when trying to import qgis.core</span></div><div><span class="gmail-pln"><br></span></div><div><span class="gmail-pln">2. installed Spyder within OSGeo4W QGIS python instance i.e.</span></div><div><span class="gmail-pln"><pre class="gmail-lang-py gmail-prettyprint gmail-prettyprinted"><code><span class="gmail-pln">py3</span><span class="gmail-pun">-</span><span class="gmail-pln">env
python </span><span class="gmail-pun">-</span><span class="gmail-pln">m pip install spyder</span></code></pre><pre class="gmail-lang-py gmail-prettyprint gmail-prettyprinted"><span style="font-family:Arial,Helvetica,sans-serif;white-space:normal">But this gives errors in the IPython console i.e.</span></pre><pre class="gmail-lang-py gmail-prettyprint gmail-prettyprinted"><pre class="gmail-lang-py gmail-prettyprint gmail-prettyprinted"><code><span class="gmail-typ">SyntaxError</span><span class="gmail-pun">:</span><span class="gmail-pln"> invalid syntax
</span><span class="gmail-typ">File</span><span class="gmail-pln"> </span><span class="gmail-str">"C:\OSGEO4~1\apps\Python36\lib\site.py"</span><span class="gmail-pun">,</span><span class="gmail-pln"> line </span><span class="gmail-lit">177</span><span class="gmail-pln">
file</span><span class="gmail-pun">=</span><span class="gmail-pln">sys</span><span class="gmail-pun">.</span><span class="gmail-pln">stderr</span><span class="gmail-pun">)</span></code></pre><pre class="gmail-lang-py gmail-prettyprint gmail-prettyprinted"><span style="font-family:Arial,Helvetica,sans-serif;white-space:normal">Thanks for any help.</span></pre><pre class="gmail-lang-py gmail-prettyprint gmail-prettyprinted"></pre></pre><pre class="gmail-lang-py gmail-prettyprint gmail-prettyprinted"></pre></span></div></div>