Comments (7)
@AlexandreSajus assign this to me
from taipy.
This does not work even if you don't inherit from the Gui. This code give the same error:
from taipy.gui import Gui
import taipy.gui.builder as tgb
import pandas as pd
class FoodDatabase:
def __init__(self):
self.food_df = pd.DataFrame({
"Meal": ["Lunch", "Dinner", "Lunch", "Lunch"],
"Category": ["Food", "Food", "Drink", "Food"],
"Name": ["Burger", "Pizza", "Soda", "Salad"],
"Calories": [300, 400, 150, 200],
})
def create_page(self):
with tgb.Page() as page:
tgb.table('{self.food_df}', filter=True)
return page
if __name__ == '__main__':
food_database = FoodDatabase()
page = food_database.create_page()
Gui(page).run(debug=True, use_reloader=True)
I don't think it is supposed to be supported in Taipy, but maybe it could be an improvement.
from taipy.
@pravintargaryen It requires a deep understanding of Taipy code. We need to handle it internally.
I remove the assignment.
from taipy.
I have not seen this syntax before. Can you let me know where you saw this one? Thanks!
from taipy.
Which part of the syntax is unclear? Unfortunately, this is not my code. A Discord user reported this issue.
from taipy.
Gui object is not designed to be inherited. They can create an instance of the Gui instead of inheriting them.
from taipy.
Okay I understand. We can close this as non-planned then
from taipy.
Related Issues (20)
- Automatically make inactive issues and PRs stale
- BUG- Taipy GUI Core cannot be loaded with base_url
- BUG-Styling table cells are not working HOT 3
- Ability to disable notifications for *file_selector* HOT 2
- Replace `setuptools.setup()` with `[project]` field in the "pyproject.toml" file
- Error notifications should not close themselves HOT 2
- Tags should not be unique in cycle HOT 1
- SPIKE: Enhance github action speed by caching dependencies
- Decision on Metric Indicator Formatting
- [🐛 BUG] tgb object descriptions don't render properly in linters
- Scenario selector - Sort scenarios HOT 1
- Scenario selector - Search bar HOT 4
- Issue template improvement
- [Feature] Support polars in your ParquetDataNode (or maybe some sort of dataset abstraction?) HOT 1
- [DOCS] More examples around mode for text control
- Chat control should support images
- [🐛 BUG] tgb.toggle("{value}") does not work but tgb.toggle(value="{value}") works
- Scenario Selector "Search" UX HOT 1
- [OTHER] How to Contribute to the Frontend of Taipy
- Analytics: Use remote default favicon HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from taipy.