“cmd.as” turns on and off atom and bond representations.
The available representations are:
lines spheres mesh ribbon cartoon sticks dots surface labels extent nonbonded nb_spheres slice
cmd.show_as(string representation, string selection)
def as(representation="",selection=""):