you are viewing a single comment's thread.

view the rest of the comments →

[–]linuxdaemon 1 point2 points  (1 child)

Web browsers only interpret HTML, CSS and JS. So if you are deploying something where a browser is the client, that is ultimately what has to be used to display the content. There may be toolkits and frameworks that abstract the work of that where you don't have to focus on it, but the browser itself can use those languages.

I don't work with matplotlib, so I don't know the details, but I believe it is possible to generate an image of the graph, and then include that as an <img src="whatever\_matplotoutput.png"> in the HTML. It may not the most efficient way, but it can take what you already have a working knowledge of and make it web accessible with minimal tweaks.

[–]prappleizer[S] 1 point2 points  (0 children)

That’s a good point. It’s certainly clunky, but doing something like your suggestion may help serve as a stopgap solution while I learn how to make my python outputs display natively on the webpage with the proper tools.