I am following the example exactly from the sample and am getting the error "AttributeError: 'EventManager' object has no attribute 'get'". The example is on this page https://developers.arcgis.com/python/latest/api-reference/arcgis.apps.hub.html#event and I am doing. I tried it in a Notebook in ArcGIS Online and it worked but I can't get it to work outside the notebook. Am I missing a step or something?
from arcgis.gis import GIS
gis = GIS()
myHub = gis.hub
myEvents = myHub.events.get(41)