I am faced with building a front end application for a scientific project, where
ID: 660405 • Letter: I
Question
I am faced with building a front end application for a scientific project, where the original scripts come from R and python. I found this interesting framework called OpenCPU(https://www.opencpu.org/) which claims to provide a seamless integration between R and javascript.
Now I am faced with the issue for python and javascript integration. Are there any good frameworks for this? Please help with suggestions?
P.S.(converting the python script to R script is ruled out since the python script depends on external libraries specific for python)
Explanation / Answer
Since you can't run python on client side, you can either port it yourself or use a compiler/converter. Here's some python to javascript compilers:
PYXC-PJ [CS friend] Python to JS. Can generate a (line/col)-number mappings file.
Pyjamas Python to JS.
Pyjaco Python to JavaScript compiler with module support.
Pyjs Python to (readable) JS.
Skulpt Python. Client side.
PyCow Python to MooTools JS.
PyvaScript Python-like syntax to JavaScript.
RapydScript JavaScript with a Pythonic syntax.
Brython browser python
PythonScript Python-like compiled to JavaScript
pythonscript Python compiled to readable JavaScript using the AST. (proof of concept)
PythonJS Integrates several python to js methods into one project. Very Active.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.