Last active
January 31, 2023 07:35
-
-
Save epifanio/a3ec76345438af55d8f57ac6a5fa6aea to your computer and use it in GitHub Desktop.
This file contains 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 PyQt5.QtWidgets import * | |
from qgis.PyQt.QtGui import ( | |
QColor, | |
) | |
import cudf | |
import cuspatial | |
print("cudf version: ", cudf.__version__) | |
print("cuspatial version: ", cuspatial.__version__) | |
from qgis.PyQt.QtCore import Qt, QRectF | |
from qgis.PyQt.QtWidgets import QMenu | |
from qgis.core import ( | |
QgsVectorLayer, | |
QgsPoint, | |
QgsPointXY, | |
QgsProject, | |
QgsGeometry, | |
QgsMapRendererJob, | |
QgsWkbTypes, | |
) | |
from qgis.gui import ( | |
QgsMapCanvas, | |
QgsVertexMarker, | |
QgsMapCanvasItem, | |
QgsMapMouseEvent, | |
QgsRubberBand, | |
) | |
app = QApplication([]) | |
# label = QLabel('Hello magic World!') | |
canvas = QgsMapCanvas() | |
canvas.setCanvasColor(Qt.white) | |
canvas.enableAntiAliasing(True) | |
canvas.show() | |
# label.show() | |
app.exec() |
This file contains 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
#!/bin/bash | |
. /opt/conda/etc/profile.d/conda.sh | |
conda activate all_cuda-118_arch-x86_64 | |
xauth add $DISPLAY . $XAUTH_TOKEN | |
python --version | |
which python | |
nvidia-smi | |
python /home/jovyan/demo.py | |
# python hbcbrowser.py | |
#cd /hbc_browser | |
#python hbcbrowser.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment