How to Solve NameError: name 'Sun' is not defined -- poliastro

Solution: Import the 'Sun' module

# Add the following line to the top of your code
from poliastro.bodies import Sun

 

For more information:
poliastro Sun