'Can we take python code as input in browser and return the output?

I tried some ways but I cannot figure out a way if we can take input (Python Code) in browser (JS) and run the code and return the output online without creating an online compiler? I tried hitting some online interpreters urls with the code but it does not work.

I was wondering if I take input and can run it in my personal IDE/Editor and return the output online.

Is there any way or tool to make this possible?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source