Hot answers tagged

7

I’ve found the solution of my main question with help of this answer. If you need to add some external library, first of all check where it is placed (if it is possible of course). I opened Python console in QGIS and inserted: from processing.core import AlgorithmProvider AlgorithmProvider.__file__ output: '/usr/share/qgis/python/plugins/processing/...


4

I use the Python window frequently as part of my workflow. The window has expanded functionality that isn't available in IDLE. It has an auto-complete function that knows when a layer is a possible input and allows the user to select from layers in the TOC. It also knows details about various arcpy functions and provides help information automatically. When ...


3

Here are a few you haven't mentioned: Batch processing even small tasks is, in my opinion, better done in a stand-alone Python script Ability to use arcpy.mapping.MapDocument("CURRENT") in the python window Esri provides these bits of information for the Python window and Python IDE's The Python window is an efficient and convenient location to use ...


2

We didn't want to use a script to open our workspace, so we finally found out how to configure Visual Studio Code through the settings.json file: https://github.com/isogeo/isogeo-plugin-qgis/blob/master/.vscode/settings.json The requirement is to have QGIS LTR installed with OSGeo4W on the computer. We automated this step with the command-line: https://gist....


2

Create an empty file named visual_studio_code_for_qgis.bat Paste this: @echo off path %PATH%;C:\Program Files\QGIS 3.2\bin path %PATH%;C:\Program Files\QGIS 3.2\apps\grass\grass-7.4.1\lib path %PATH%;C:\Program Files\QGIS 3.2\apps\Qt5\bin path %PATH%;C:\Program Files\QGIS 3.2\apps\Python36\Scripts set PYTHONPATH=%PYTHONPATH%;C:\Program Files\QGIS 3.2\apps\...


1

Completely uninstalled and reinstalled vs code. This seemed to fix the issue.


1

A few points: Both the python window and IDLE stores all variables created during each session. This can cause confusion when testing scripts. The python window allows you to access the TOC of your map document. The python window provides functionality that does not exist in a standalone script. Therefore, it is not the best practice to test an entire ...


Only top voted, non community-wiki answers of a minimum length are eligible