Open a terminal and run:
$ pip install taipy
You're all set! All aboard the Taipy journey 🚂
Create a new file taipy.py
with the following code:
from taipy import Gui
my_app="""
# Welcome to Taipy
## Getting started with Taipy GUI
### How excited are you to try TAIPY?
<|{my_param}|slider|min=1|max=100|>
My excitement level: <|{my_param}|text|>
"""
my_param=100
Gui(page=my_app).run()
Press RUN/CTRL+F5
You can use the CORE editor called Taipy Studio in VSCode.
Low Code your DAGs
import taipy as tp
from taipy import Config
#function
def double(nb):
return nb * 2
input_data=43
#datanodes
input_data_node_cfg = Config.configure_data_node("input", default_data=input_data)
output_data_node_cfg = Config.configure_data_node("output")
#Configuration of task
task_cfg = Config.configure_task("double",
double,
input_data_node_cfg,
output_data_node_cfg)
#Configuration of the pipeline and scenario
pipeline_cfg = Config.configure_pipeline("my_pipeline", [task_cfg])
scenario_cfg = Config.configure_scenario("my_scenario", [pipeline_cfg])
#my_scenario is the id of the scenario configured
scenario_cfg = Config.scenarios['my_scenario']
tp.Core().run()
# Creation of the scenario and execution
scenario = tp.create_scenario(scenario_cfg)
tp.submit(scenario)
print("Value at the end of task", scenario.output.read())
Want to help build Taipy? Check out our CONTRIBUTING.md
file.
Want to be part of the Taipy community? Check out our CODE_OF_CONDUCT.md
file.
Copyright 2023 Avaiga Private Limited
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
taipy
:_run.py
: The python module exposing the methodrun
to use to start a Taipy application.
CODE_OF_CONDUCT.md
: Code of conduct for members and contributors of taipy.CONTRIBUTING.md
: Instructions to contribute to taipy.INSTALLATION.md
: Instructions to install taipy.LICENSE
: The Apache 2.0 License.README.md
: Current file.setup.py
: The setup script managing building, distributing, and installing taipy.