I am trying to enable backdrop in Blender using Python and using Blender's Python API (no GUI) but it seems that it is not as straight-forward as I thought. I know how to enable Use Nodes via
bpy.context.scene.use_nodes = True and just need to enable backdrop. The most relevant Python documentation for backdrop Here is a bit unclear and I do not know exactly how I can enable backdropping through the NodeSpaceEditor class. Can someone explain how I can do that?
Update: it turns out that the Python documentation is useful when you are running Blender with the GUI. I need to enable backdrop when I am running Blender in the background.
The hard way is to compile Blender from scratch and enable backdropping by modifying the source code as explained here but this is too much of work. I hope there is a way to do it using Blender's Python API.