I'm new to scripting in blender and am trying to select a bone by name using python. Eventually I would like to loop through all the bones of an armature and translate them to a new location in edit mode but for now I am literally just trying to select a bone by name. I have been looking through SE as well as the blender docs but I cannot seem to wrap my head around this. I have found some older answers from 2.7x but these do not seem to work in 2.8. I have also found plenty of answers on how to select objects by name..but not bones and my brain is unable to extrapolate.
Lets say I have an armature with one bone in it: "jBone"...how do I select this and make it active using python in blender 2.8?
----here is some of what I've tried, none of it works:
misc attempt 1:
bpy.ops.armature.select_set(name="jBone")
misc attempt 2:
ob = bpy.data.objects["jBone"]
bpy.ops.object.select_all(action='DESELECT')
bpy.context.view_layer.objects.active = ob
ob.select_set(True)