def METHOD_NAME(dataSrc):
    plottrlog.LEVEL = logging.DEBUG
    app = QtWidgets.QApplication([])
    fc, win = autoplot(plotWidgetClass=plotWidgetClass)
    dataThread = QtCore.QThread()
    dataSrc.moveToThread(dataThread)
    dataSrc.dataready.connect(lambda d: win.setInput(data=d, resetDefaults=False))
    dataSrc.nomoredata.connect(dataThread.quit)
    dataThread.started.connect(dataSrc.gimmesomedata)
    win.windowClosed.connect(dataThread.quit)
    dataThread.start()
    if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
        QtWidgets.QApplication.instance().exec_()