AI Studio Build has trouble with Python

AI Studio Build is great for creating prototypes, even quite complex ones, but I’m running into a snag. While AI Studio understands Python, and can write Python code, Build is not able to write to Python files. This seems like a deliberate choice, since while empty \*.py files can be created, they can’t be edited by myself either.

As a result, for any projects that include Python code, it either has to be in an importable/installable package or needs to be explicitly copied from a text file and executed as Python in memory.

Suffice it to say that this is seriously cramping my style.

Can the restrictions on writing to \*.py files (by the user OR by the agent) be loosened?

1 Like

Hey,

Hope you’re keeping well.

AI Studio Build currently has intentional restrictions on editing or directly writing to .py source files in the project workspace. This is to ensure safe execution and maintain consistency across the build environment, which is sandboxed for security and stability reasons. If you need to work with Python code, the recommended approach is to store it in .txt or .ipynb files within the workspace and then programmatically load or execute it in memory, or package it as a module and install it using pip inside the Build environment.

Thanks and regards,
Taz

Hi @NerdWorldOrder ,

Welcome to the Forum!
Thank you for reaching out!
At this time, AI Studio Build doesn’t support editing or writing .py files. For details on available features and limitations, please refer to the documentation.