How to upload my Python code to my WiX website?

瘦欲@ 提交于 2020-08-22 06:50:42

问题


I'm new to Python and web development. I've written a machine learning program in Python which can predict the future price of any stock. I've to upload this code to my website (which has been hosted on WiX). This is the link to my code: https://github.com/sunnysinghnitb/stock_market_prediction/blob/master/Predicting_Stock_Market_Using_Python.ipynb

Let me explain what I'm trying to achieve. If you visit the above link, you can see a graph plotted at the bottom of the page. I want this graph to be plotted on my website.

In line 19, you can see that I've used a csv file to read data. This csv file contains the data of stock price of "TATAGLOBAL" of previous years. I used this data to predict the stock prices of next years using LSTM algorithm.

Now, suppose, I've some csv files of different stocks. What I want to do is to create an application which will be able to produce the similar graph as shown in the bottom of the given link. Meaning: When the user selects a certain stock, the output on my website will show the predicted stock price for the year 2019 for that particular stock.

Kindly, provide some insights on how can I achieve this on WiX? Which programming language to use? Feel free to ask for further clarifications, if required. Finally, thanks for your help and support.


回答1:


Assuming you do not wish to host the page on another server and embed it as IFrame inside WIX site. So at WIX you can use only javascript both at the server side and client side.




回答2:


In addition to Gal's comments Wix Supports npm libraries and svg display.

So if you can find an npm library that generates an svg for the graph that might be a consideration. For this specific question Gal's approach is probably your best bet.



来源:https://stackoverflow.com/questions/54224214/how-to-upload-my-python-code-to-my-wix-website

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!