This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # === | |
| # About: Back button and state handling demo | |
| # Author: Prithvi Prabhu <prithvi.prabhu@gmail.com> | |
| # License: Apache-2.0 | |
| # Source: https://github.com/h2oai/nitro/py/examples | |
| # Keywords: [basic, flask] | |
| # | |
| # Setup: | |
| # FILE requirements.txt EOF | |
| # flask |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from typing import List, Optional | |
| class Operation: | |
| def __init__(self, do, undo): | |
| self.do = do | |
| self.undo = undo | |
| class BatchOperation(Operation): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # === | |
| # About: A canonical to-do list using H2O Wave | |
| # Author: Prithvi Prabhu <prithvi.prabhu@gmail.com> | |
| # License: Apache-2.0 | |
| # Source: https://github.com/h2oai/wave/py/examples | |
| # Setup: | |
| # RUN python -m pip install h2o-wave | |
| # START python -m h2o_wave run wave_todo_list.py | |
| # === |