Run the keywords retrieved from the JavaScript file with Python function arguments and
Also, is it possible for JavaScript to receive the result (return value of the function)?
JavaScript runs on a browser (Firefox).
I also want to run Python on my browser.
Python has a variety of implementations that run on a web browser.
You will be familiar with this information:
(stackoverflow.com) Python in Browser: How to choose between Brython, PyPy.js, Skulpt and Transcript?
(The question seems to be older, but it seems to have been updated later (2019)
While many of the Python scripts are transpiled to JavaScript or WebAssembly, there seems to be a complete set (per CPython)
Other things that don't appear here include RustPython
(transpile to WebAssembly Python itself acts as a WebAssembly System Interface (WASI) module)
About Python calls from JavaScript
The original stackoverflow.com article above Running Python in the Browser and each document may call Python from JavaScript, but not all of them are confirmed
Please check if you want to use it.If you have a question (about how it works), you may want to narrow down the conditions.
Just in case? I'll also write down Python's web framework
There are many different web frameworks.
https://ja.wikipedia.org/wiki/Python#Web Application Framework
Other FastAPI is also
(If you understand HTTP) The standard package also includes http.server---HTTP server
To call functions between JavaScript and Python, use the
Is it "Eel"?
Is "chrome" the best browser?
(Reference URL)
http://www.inmyzakki.com/entry/2018/02/21/172202
https://qiita.com/inoory/items/f431c581332c8d500a3b
to the point where I can't believe it myself by referring to things like that.
If you think about it, the impossible might become possible.
I'm sorry if I wrote something wrong.
© 2024 OneMinuteCode. All rights reserved.