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
#%% | |
try: | |
if __IPYTHON__: | |
# this is used for debugging purposes only. allows to reload classes when changed | |
ipython().magic('load_ext autoreload') | |
ipython().magic('autoreload 2') | |
except NameError: | |
pass | |
import bokeh.plotting as bpl |
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
# gpu drifting sinusoid. | |
# based on gpuimage example in docs: | |
# https://github.com/vispy/vispy/blob/master/examples/basics/gloo/gpuimage.py | |
from vispy import app, gloo | |
vertex = """ | |
attribute vec2 xy_position; | |
varying vec2 v_position; | |
void main() |