Callback() error for Filtering and Multi-Column Sorting

I copied the code for Backend Paging with Filtering and Multi-Column Sorting from Python-Driven Filtering, Paging, Sorting | Dash for Python Documentation | Plotly and ran it on my Jupyter Notebook. However I am receiving the error message below:
"—> 64 @app.callback(
65 Output(‘table-sorting-filtering’, ‘data’),
66 Input(‘table-sorting-filtering’, “page_current”),

TypeError: callback() takes from 2 to 4 positional arguments but 6 were given
"
I’m not sure how to fix this because apparently same code works on this example from the dash website. Any idea?

Hi,

Welcome to the community! :slight_smile:

Could you please provide the entire callback definition that you are using?

The error indicates that you have 6 arguments in the function, while it should take just 4 in the original example that you mentioned.

Hope this helps!