If you want to only show the visualisation in strudel, here's some code for toggling hiding the code on each eval:
if (window.toggle) {
document.getElementById('test-canvas').style.backgroundColor = 'black';
document.getElementById('test-canvas').style.zIndex = 100;
window.toggle = false;
}else {
document.getElementById('test-canvas').style.backgroundColor = '';
window.toggle = true;
}