MetaGPT
MetaGPT copied to clipboard
Ask data interpreter to automatically save generated Python codes and calculation results?
How to fix the following demo and ask data interpreter to automatically save generated Python codes and calculation results to a specific folder ?
import asyncio
from metagpt.roles.di.data_interpreter import DataInterpreter
async def main():
di = DataInterpreter()
await di.run("Run data analysis on sklearn Iris dataset, include a plot")
asyncio.run(main()) # or await main() in a jupyter notebook setting