Any example of dashboard using pyscript pls

Any example of dashboard using pyscript pls.
Thanks.
Sai

1 Like

from ktsht.tanaka.2020 to Sai_Sai

hello,

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
    <script defer src="https://pyscript.net/alpha/pyscript.js"></script>
    <title>First Python HTML app</title>
</head>
<body>
    <py-script>
from datetime import datetime 

print("Hello World!")
print(f"It's now {datetime.now()}")
    </py-script>
</body>
</html>

This is an example of “Hello, World”. Did you need something like this?

Regards, you.
ktsh.tanaka.2020

1 Like

No i was looking for something like Corona dashboard examples generally made using dash & plotly frameworks.
Wondering how they make it using pyscript in data use cases mostly used is the dashboards so requesting. Thanks. Sai

1 Like

You would probably need to figure that out yourself / build a library that can do it.

PyScript is very new, you can’t easily port existing libraries libraries that require socket or API access, and it may require substantial architectural changes. I don’t see a PyScript version of Dash any time soon, but if PyScript becomes popular maybe eventually.

1 Like

from ktsh.tanaka.2020 to Sai_Sai

You can find a demo of Pyscript that you would like at the following URL:

https://pyscript.net/examples/panel_stream.html

When used with Anaconda, it’s based on Jupyter, but I haven’t seen it much.

For example, Our World In Data’s Data Explorer is made of R. The sample is the following URL:

Regards, you.
ktsh.tanaka.2020

1 Like

+1 on this. PyScript demo has a few dashboard examples, including the Panel stream mentioned above and The NYC Taxi Data Viz too

1 Like