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

Solution: Import the 'time_range' module

# Add the following line to the top of your code
from poliastro.util import time_range

 

For more information:
poliastro time_range