Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flask Callback Processing #33

Open
Tracked by #32
Squidtoon99 opened this issue Feb 9, 2024 · 0 comments
Open
Tracked by #32

Flask Callback Processing #33

Squidtoon99 opened this issue Feb 9, 2024 · 0 comments
Assignees
Labels
dashboard Hard Difficult issues that will take time to complete Task

Comments

@Squidtoon99
Copy link
Collaborator

Squidtoon99 commented Feb 9, 2024

Using Example 2 of the plotly documentation. Implement a step that takes in the current run id callback and outputs a dataframe of all mongo data in that run id. This will reduce the amount of database calls that need to be performed for simple operations.

Example code would work similar to this

@callback(
    Output('testing-data', 'data'),
    Input('testing-day', 'value'))
def load_data(value):
     mongo_data = mongodb.find_documents() # find everything in {testing-day}
    return json.dumps(mongo_data)

@callback(
    Output('t', 'figure'),
    Input('testing-data', 'data'))
def update_graph_1(jsonified_cleaned_data):
@Squidtoon99 Squidtoon99 changed the title Intermediary Processing step Flask Callback Processing Feb 9, 2024
@Squidtoon99 Squidtoon99 added Hard Difficult issues that will take time to complete dashboard Task labels Feb 9, 2024
@Squidtoon99 Squidtoon99 moved this to Ready in Web Dashboard Feb 9, 2024
@Squidtoon99 Squidtoon99 added this to the February Leads Meeting milestone Feb 9, 2024
@Squidtoon99 Squidtoon99 moved this from Ready to In progress in Web Dashboard Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dashboard Hard Difficult issues that will take time to complete Task
Projects
Status: In progress
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants