MetaGPT icon indicating copy to clipboard operation
MetaGPT copied to clipboard

Ask data interpreter to automatically save generated Python codes and calculation results?

Open sunweihunu opened this issue 1 year ago • 0 comments

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

sunweihunu avatar May 05 '24 09:05 sunweihunu