Skip to content

Instantly share code, notes, and snippets.

@epifanio
Last active January 31, 2023 07:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save epifanio/a3ec76345438af55d8f57ac6a5fa6aea to your computer and use it in GitHub Desktop.
Save epifanio/a3ec76345438af55d8f57ac6a5fa6aea to your computer and use it in GitHub Desktop.
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()
#!/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