Dash multipage app: Usage of the app-object within a specific page

Hello,

i’d like to follow the project structure “One Page per File”, as described here: Multi-Page Apps and URL Support | Dash for Python Documentation | Plotly

So, right now it’s working quite good but and all my normal callbacks are in the specific pages-file, like here:
image

However, i need long callbacks for some elements page1.py. These are defined currently in the app.py, since i need access to call i on the existing “app”-object:

What needs to be done, that the @app.long-callback works in page1.py?

@Robert2
Unfortuanatly, long_callback is not compatible with multi-page apps. I recommend using the new background callbacks available in dash 2.6.1

You can find an example of using background callbacks with Dash Pages in example #4 here: