Executing python script


#1

Is there a method to execute a python script in my .ts file? I have used Python Shell with Node.js before, but I can’t seem to get it working with my v2 project.

I’m not sure how to import python shell into my project. I’ve tried running browserify on index.js from the python shell repository and including the file in index.html, but when I keep getting 'Python Shell is undefined'. It seems like it is not being exported properly.

If anyone has a solution, please let me know! Thanks!


#2

Did you find a solution to this problem? @raymondtieu


#3

The python scripts are not able executed in the ionic if you intend to write the python code in the app itself but we can access the services which are written in the python by writing the API call from the application those are called providers in the ionic