[Qgis-user] How to get Spyder IDE working with QGIS

Luca Manganelli luca76 at gmail.com
Thu Oct 4 01:22:23 PDT 2018


Il giorno mer 3 ott 2018 alle ore 02:51 John Walker <jdkwalker21 at gmail.com>
ha scritto:

> 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:
>
> 1. created a new conda environment and installed QGIS via conda using: conda
> install -c conda-forge qgis. However I get errors when trying to import
> qgis.core
>
> 2. installed Spyder within OSGeo4W QGIS python instance i.e.
>
> py3-env
> python -m pip install spyder
>
> But this gives errors in the IPython console i.e.
>
> SyntaxError: invalid syntaxFile "C:\OSGEO4~1\apps\Python36\lib\site.py", line 177
> file=sys.stderr)
>
> Thanks for any help.
>
>
>
You could try the bat in this repository:

https://github.com/frankbroniewski/visual-studio-code-qgis

simply change in the last line of the bat from "code.exe" (this is the
Visual Studio Code IDE) with the exe of your IDE.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20181004/43550c42/attachment.html>


More information about the Qgis-user mailing list