✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Callback function doesn't print

I am trying to print the values of filtered data from dataframe in console in one of the callback function for testing purpose but it doesn’t print anything in console.
I am using vscode as Editor.

Hi @matsujju
If you use the debug console in viscose, does that display what you print?

would you be running the app with debug=True ?
if so, try with debug=False. In debug mode, my stdout is captured (or not flushed?) and I do not see any output of my print calls.

can also try print("debug print statement", flush=True), if the issue is lack of flushing…

Thanks guys it is working now.

hello @matsujju, just for the record, could you explicit what did make the thing work ? debug=False or flush=True ?

debug = True worked as it pointed my mistake.