✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

How do you include a callback value into a formatted string?

Simple one here… I am using dcc.Store and setting a session_id string. When it is returned I can use:

html.P(’’, id=‘session_id’)

to print it raw but how do I include it within a formatted string like f’session id: {session_id}’. Or set it to a variable above the call to do the same.

figured this one out myself, that the formatting should be done on the sending side and not the receiving side. That will keep the page rendering as efficient as possible.