Bring Drag & Drop to Dash with Dashboard Engine. 💫 Learn how at our next webinar!

Live update table dash

I get the constant error of

import dash
import dash_core_components as dcc
import dash_html_components as html
import dash_table
import as px
import pandas as pd
import numpy as np

from assets.dashcumponents import dashcumps
from assets.exchangeWrappers.FTX.ftx_api import FtxApi
from assets.exchangeWrappers.FTX import ftx_client

#Disabling the god damm gay ass "meh copy slice" warning
pd.options.mode.chained_assignment = None

external_stylesheets = ['']
app = dash.Dash(__name__, external_stylesheets=external_stylesheets)

#Default vars that need to be filled in
positions_df = ftx_client.getGroupedPositions()

app.layout = html.Div(children=[

def updatePositions():
    positions_df = ftx_client.getGroupedPositions()
    return positions_df

if __name__ == '__main__':

the error i receive;
Callback error updating

the function i use in

def CreateTable(df,table_id):
        return dash_table.DataTable(
                columns=[{"name": i, "id": i} for i in df.columns],

Hi @JonasVerhalen

Since I can’t run the code you posted, I’m not sure this will work… but try adding a variable name (like n or _ ) for the interval-component in the callback function.

Even if the value is not used in the function, it still needs to be defined as an input argument.


is already filled in
updatePositions() take 0 arguments but gets one is the main error