I’ve found the solution of my main question with help of
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
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 ...
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 ...
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....
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 ...