HTML not showing with deployed Bokeh app using render_template()

I’m aware that this might not exactly be a Bokeh specific problem, but I’m wondering if anyone still has an idea to what is going on.

So my app deploys fine using two cdm terminals and 'bokeh serve --host="*"" and ‘python’ my app shows up at

However, although I send index.html into render_template() the header and paragraph text do not show up, only the actual random_generator shows.

I’m curious if anyone knows why this is? It’s probably some minor thing, but for the life of me I can’t find it :frowning:

####flask app
from flask import Flask, render_template
from bokeh.embed import autoload_server
from bokeh.client import pull_session
#inistiate the flask app
app = Flask(name)
#create index page function
def index():
script, div =autoload_server(None,, url=url)
return render_template(“index.html”, script=script, div=div)
#run app
if name == “main”:
####html file (located in /templates/ folder)

I am the title {% load static %}

I am a heading

{‌{div|safe}} {‌{js|safe}}

I am a paragraph


#import libraries
from import curdoc
from bokeh.models import ColumnDataSource
from bokeh.plotting import figure
from random import randrange
#create figure
#create columndatasource
#create glyphs‘x’,y=‘y’,size=8,fill_color=‘olive’,line_color=‘yellow’,source=source)
#create periodic function
def update():
#add figure to curdoc and configure callback