☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Bokeh Application Function Handler

Community Supportserver
samirak93
samirak93

While using the function handler to call functions to plot, is it possible to provide the dataframe as an argument?

Eg:

def make_doc(doc):

    # do work to modify the document, add plots, widgets, etc.

    return doc

app = Application(FunctionHandler(make_doc))

Would it be possible to pass dataframes or other data sources through make_doc? Thanks

⌁   Link to post
Xavier_Artusi
Xavier_Artusi

using partial?

from functools import partial

def make_doc(doc, df):

    # do work to modify the document, add plots, widgets, etc.

    return doc

make_doc_with_df = partial(make_doc, df=df)
app = Application(FunctionHandler(make_doc_with_df))
⌁   Link to post

End of archived discussion · Replies are disabled