/usr/share/reinteract/examples/play.rws is in reinteract 0.5.0-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 | from numpy import *
from replot import *
# Plot one cycle of a periodic function
x = linspace(0, 2 * pi, 50)
plot(x, sin(x) + sin(3*x) / 3 + sin(5*x) / 5)
# OK, looks good, let's create a bigger data set
# and play it
from replay import *
x = linspace(0, 440 * 2 * pi, 44100)
play(sin(x) + sin(3*x) / 3 + sin(5*x) / 5)
|