# Running Python files with Renardo code

**URL:** <https://forum.toplap.org/t/running-python-files-with-renardo-code/2380>\
**Category:** Foxdot\
**Created:** [19 August 2024 18:54 UTC](https://forum.toplap.org/t/running-python-files-with-renardo-code/2380 "2024-08-19T18:54:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmnplc](https://forum.toplap.org/user_avatar/forum.toplap.org/tmnplc/32/1300_2.png) [@tmnplc](https://forum.toplap.org/u/tmnplc)\
**Post date:** [19 August 2024 18:54 UTC](https://forum.toplap.org/t/running-python-files-with-renardo-code/2380/1 "2024-08-19T18:54:18Z")

</div>

Hi,

I’m trying to run a regular python script with Renardo code and I found [this](https://github.com/Qirky/FoxDot?tab=readme-ov-file#running-python-files-with-foxdot-code) tutorial to do it with regular old FoxDot, but importing Renardo and using Go() is not working. Is it possible to do this with Renardo?

EDIT: I found [this](https://renardo.org/#/alternative_editors) tutorial for Renardo and I can now get sound but I can’t stop it the instrumetns through the script.

Btw, is there a way to use variables on instructions for play()? For example, instead of pressing the space bar 8 times for a long rest, could I just reduce the line length by using a variable called “rest8” for example? I’ve tried it but it only accepts string data.

Thank you!
