Nikhil Narale
Ansys Employee

Can you check if this works for you? Using PyFluent Core - Lesson 4 - YouTube ; Using PyFluent Visualization - Lesson 6 - YouTube 

If so, you may have to install PyFluent API packages. I would recommend to check out this comprehensive course on PyFluent: Getting Started with PyFluent | Ansys Courses