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
''' Shows a couple of ideas around coroutines for event handling. | |
''' | |
import asyncio | |
from asyncio import sleep, ensure_future, Future | |
import os | |
os.environ['KIVY_EVENTLOOP'] = 'async' | |
'''async needs to be set so that asyncio will be used for the event loop. ''' | |
from kivy.app import App |
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
# -*- coding: utf-8 -*- | |
# <nbformat>3.0</nbformat> | |
# <codecell> | |
from numpy import * | |
from pandas import * | |
from scipy.signal import argrelextrema |