Is there a Show/Hide MapBasic Window (or equivalent) in QGIS such as in MapInfo?

I would like to learn SQL expressions parsing, or a Python Window viewer?

  • QGIS has a Python window where you can run Python code that can manipulate your maps. Or you can try running SQL queries in the QGIS attribute table.
    – Spacedman
    Oct 29, 2018 at 13:00
  • How can I view such Python window?
    – Pescariz
    Oct 29, 2018 at 13:12
  • I think this question has been answered by everyone. Also might interest you to read this post: gis.stackexchange.com/questions/14691/… Oct 29, 2018 at 23:04

2 Answers 2


You can view a python window. I would suggest referencing this page QGIS Python console

The QGIS Python Console is an interactive shell for the python command executions. It also has a python file editor that allows you to edit and save your python scripts. Both console and editor are based on PyQScintilla2 package. To open the console go to Plugins ‣ Python Console

enter image description here

Also, you can refer to Expressions, Filtering and Calculating Values¶

QGIS has some support for parsing of SQL-like expressions. Only a small subset of SQL syntax is supported. The expressions can be evaluated either as boolean predicates (returning True or False) or as functions (returning a scalar value).


There is not a simmilar thing as the MapInfo's "show/hide MapBasic" window in QGIS. As @MapinfoNewbie sugests, it has been already discussed in this post: enter link description here

Python window, as far as I have experienced it, is meant for writing commands, edit them, etc... But one can not see the code being written automatically when operating with QGIS. For example, when I click "select" or "save project as..." I don't see the code being written in the python window, which is what I was looking for, and what one can see in the MapInfo "Show/hide MapBasic" window.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.