Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Access python method from plain javascript [duplicate]

I have this python method shown below in a separate file and want to access and get value using plain js (no frame works used.) is there any way i can achieve this?

def myPythonCode :
        ....
        ...
        return somevalue

Answer*

Draft saved
Draft discarded

Required fields are marked with *

Cancel
1
  • i dont want to do any changes in python code. just plain js. i want to use scipy.spatial package, since js doesnt have anything. i used python for that and now i want to integrate python code with my plain js Commented Sep 26, 2019 at 11:28

lang-js