Is it possible to run rasa server using python file?

Check this post http://forum.rasa.com/t/running-rasa-within-an-ide-for-debugging-purposes/13557/6

Specifically the script by @Arjaan It worked for me.

You can also append ‘shell’ as a parameter to debug using rasa shell command line.