How can I directly interact with my Editor using python API?

I have followed the instruction on ml-agents/docs/Python-API.md at release_12_docs · Unity-Technologies/ml-agents · GitHub which said as follow:

But when I set “file_name” to “None”, nothing happens. And I finally received below.

Is there anyone help me?
Thank you very much!

Hi @DayBeha ,
Have you gone through the tutorial here to get an idea of how to set up an Agent? I would recommend getting comfortable with that first before trying the Python API.

I think that wording in the documentation might be a bit vague; the Python API that we provide allows you to interact with Agent instances that are either in the editor or a build executable, but it doesn’t let you control the editor directly.

Hi @celion_unity
I have made my Learning Environment,and run “mlagents-learn config/rollerball_config.yaml --run-id=RollerBall” properly. It does make sense. But the Python API just have no response.

I thought I will get the same response as the command do:

But I got the Error post above

did you fix it, I get the same thing, what do I do?

Its not helpful man, just explain why the api does not connect with the editor, everything in unity is ready and also works well using unity with cmd directly.