Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
print statements without ()
#5
(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]
Reply


Messages In This Thread
print statements without () - by petec - Jun-16-2022, 03:58 AM
RE: print statements without () - by ndc85430 - Jun-16-2022, 04:48 AM
RE: print statements without () - by snippsat - Jun-16-2022, 04:58 AM
RE: print statements without () - by Gribouillis - Jun-16-2022, 05:34 AM
RE: print statements without () - by snippsat - Jun-16-2022, 02:48 PM
RE: print statements without () - by Gribouillis - Jun-16-2022, 03:49 PM
RE: print statements without () - by petec - Jun-17-2022, 01:45 AM
RE: print statements without () - by snippsat - Jun-17-2022, 02:27 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to combine print statements in for loop adeana 2 2,049 Jun-12-2020, 05:08 PM
Last Post: adeana
  If-Print statements on the same line ClassicalSoul 1 2,303 Jan-31-2019, 02:14 PM
Last Post: buran
  How to execute a string with multiple sqlite statements and print results? shanepy 0 2,289 Nov-20-2018, 10:19 PM
Last Post: shanepy

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020