[07:06] welll in the text editor , bpy.context.area.type='GRAPH_EDITOR' [07:06] then run the code that needs the context, and afterwards: bpy.context.area.type='TEXT_EDITOR''