☰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

Cannot replace the document tile in tempates

Community Supportserver
Kevin_Kyoungup_Park
Kevin_Kyoungup_Park

I am using my template file and tried to redefine the tile as follows:

<title>{% block title %}My APP{% endblock %}</title>

But, the brower always shows the title as ‘Bokeh Application’, which is the DEFAULT_TITLE from bokeh.min.js.

Is it a bug?

⌁   Link to post
gmerritt123
gmerritt123

Not sure if this helps, but I’ve set mine up like so:

template = Template('''<!DOCTYPE html>
        <html lang="en">
            <head>
                <meta charset="utf-8">
                <title>'''+html_title+'''</title>
                {{ resources }}
                {{ script }}       
            </head>
            <body>
                <div>
                {{ div }}
                </div>
            </body>
        </html>
        ''')

And it works just fine.

⌁   Link to post
Bryan
Bryan

It might be possible to make it work so that if curdoc().title is None, then it will not override anything in the template. In fact, it might already work this way. But I think if curdoc().title is set to a (non-None) value, then it will always have to take precedence (that is what it having a value signifies).

⌁   Link to post

End of archived discussion · Replies are disabled