How to Solve NameError: name 'J2_perturbation' is not defined -- poliastro
Solution: Import the 'J2_perturbation' module
# Add the following line to the top of your code
from poliastro.core.perturbations import J2_perturbation
For more information:
poliastro J2_perturbation