Show waveform as part of larger program

Note that the REPL implicitly will run display(ans) after each line that it executes, if that line doesn’t end in a semicolon, so perhaps you want to add display(buf) to your program?

1 Like