(Jun-16-2022, 05:34 AM)Gribouillis Wrote: One could perhaps try pyscript, which looks somewhat experimental, as the warning says on the front page ...Yes PyScript is interesting as can run Python code directly in browser have done some testing with it.
It will have different usage in future as don't need a server,and can just distribute a singe HTML file.
i would say that still should learn basic web-development with Flask as is mature and have lot of good tutorials.
Still need some basic web-development knowledge use when use PyScript.
It's of course interesting that stuff like this run in browser.
np.html
<head> <script defer src="https://pyscript.net/alpha/pyscript.js"></script> <py-env> - numpy - matplotlib - pandas </py-env> <py-script> import pandas as pd import matplotlib.pyplot as plt import numpy as np df = pd.DataFrame(np.random.rand(10, 4), columns=["a", "b", "c", "d"]) fig, ax = plt.subplots() df.plot.area(ax=ax) plt </py-script>
![[Image: naMD1O.png]](https://imagizer.imageshack.com/v2/xq90/922/naMD1O.png)