Visualization without

I am trying to use Panda3d with Stable-Baselines and I would like to visualize my app while the agent is training. When executing, nothing after that line will be executed. If I remove that line from the code, I still get an app window but it’s just a black screen. Is there another way to render the app, e.g. with a line of code that I can execute every step?

Thanks in advance.

The most direct answer is that you can call taskMgr.step() to manually step through the task manager whenever you want. What run() does effectively amounts to an infinite loop calling taskMgr.step().

Thank you, that’s exactly what I was looking for!