Py.Cafe

maartenbreddels/

taipy-data-visualization

Interactive Taipy-Based Data Visualization

DocsPricing
  • app.py
  • requirements.txt
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
from taipy.gui import Gui
from math import cos, exp

value = 10

page = """
# Taipy *Getting Started*

Value: <|{value}|text|>

<|{value}|slider|on_change=on_slider|>

<|{data}|chart|>
"""

def on_slider(state):
    state.data = compute_data(state.value)

def compute_data(decay:int)->list:
    return [cos(i/6) * exp(-i*decay/600) for i in range(100)]

data = compute_data(value)


from flask import Flask
from taipy import Gui

flask_app = Flask(__name__)

@flask_app.route("/home")
def home_page():
    return "The home page."

gui = Gui(page="# Taipy application", flask=flask_app)
gui._config.config['async_mode'] = "asgi"
gui.run()#services)
app = flask_app

# if __name__ == "__main__":
# Gui(page).run(title="Dynamic chart")
requirements.txt
1
2
3
4
5
6
7
8
9
10
11
12
dash
pandas
taipy
gitignore-parser # mock
gevent # mock
greenlet # mock
pyarrow # mock
pymongo # mock
zope-interface # mock

https://py.cafe/files/maartenbreddels/taipy-data-visualization/taipy-3.2.0.dev0-py3-none-any.whl
https://py.cafe/files/maartenbreddels/taipy-data-visualization/watchdog-4.0.1-py3-none-any.whl