OpenPythonSCAD creates a .py code window in the OpenSCAD interface which one interacts with in the same way as a .scad code window (there's even basic support for the Customizer).
I suspect it would be really easy to port SolidPython to work w/in OpenPythonSCAD (if it hasn't already been done)
Thanks for this, didn't know about it.
How does that compare to solid python 2?
https://github.com/jeff-dh/SolidPython