jayanam writes:
In this video I show a free addon with that you can use the internal HDRI in the viewport shading for rendering. One drawback is that you have to set the render window to New Window, because the addon needs an active 3D viewport.
So I used the Python methods of the addon and implemented an own one with that the internal HDRI can be added manually to a node setup.