简体   繁体   中英

reading data from python file into javascript file

Hi I have been trying to create an application using reactJS which takes a file (.mf4 format ) as input, reads data and plots it. But there does not exist any JS librarie for reading data from.mf4 file, however there are python libraries.

Lets say getdata() is a python function which returns say python dataframe.

How can I call getdata() function in JS and get data?

what are the different ways I can implement this?

Export from python to JSON format and read the JSON with React JS Hooks:

https://blog.nubecolectiva.com/como-mostrar-datos-mediante-hooks-con-react-js-16-12/

In you front you can use Chart JS or other library.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM