Using {} in a lambda expression will result in the visual element not showing up.
Expected Behavior
We should find a way to make it work. If it is impossible, we should have some kind of warning and documentation.
Steps to Reproduce Issue
from taipy.gui import Gui
import taipy.gui.builder as tgb
value = 10
with tgb.Page() as page:
# Not working
tgb.text(value=lambda value: f"1: Value {value}")
# Not working
tgb.text(value=lambda value: "2: Value {value}")
# Works
tgb.text(value=lambda value: "3: Value " + str(value))
# Works
tgb.text("4: Value {value}")
Gui(page=page).run(title="Frontend Demo")
Solution Proposed
No response
Screenshots
No response
Runtime Environment
No response
Browsers
Chrome
OS
Windows
Version of Taipy
Develop - 7/11/24
Additional Context
No response
Acceptance Criteria
[ ] Ensure new code is unit tested, and check code coverage is at least 90%.
[ ] Create related issue in taipy-doc for documentation and Release Notes.
What went wrong? π€
Using
{}
in a lambda expression will result in the visual element not showing up.Expected Behavior
We should find a way to make it work. If it is impossible, we should have some kind of warning and documentation.
Steps to Reproduce Issue
Solution Proposed
No response
Screenshots
No response
Runtime Environment
No response
Browsers
Chrome
OS
Windows
Version of Taipy
Develop - 7/11/24
Additional Context
No response
Acceptance Criteria
Code of Conduct