This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image as PILImage | |
from qgis.PyQt.QtGui import QImage | |
from qgis.core import QgsMapRendererSequentialJob | |
from qgis.gui import QgsMapCanvas | |
def display_canvas(canvas: QgsMapCanvas) -> PILImage.Image: | |
job = QgsMapRendererSequentialJob(canvas.mapSettings()) | |
job.start() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"key": "/", | |
"when": "notebookEditorFocused && !inputFocus && !notebookOutputInputFocused", | |
"command": "notebook.find" | |
}, | |
{ | |
"key": "ctrl+enter", | |
"when": "!inlineChatVisible && notebookCellListFocused", | |
"command": "notebook.cell.executeAndFocusContainer" |