restart with pair style python from a restart file and a data file. in.pair_python_hybrid: This versions shows how to mix regular pair styles with a python pair style.
from lammps import lammps, LMP_STYLE_GLOBAL, LMP_STYLE_ATOM, LMP_TYPE_VECTOR, LMP_TYPE_ARRAY lmp.fix_external_set_energy_global("ext", 0.5) lmp.fix_external_set ...