

@app.route('/')
def polynomial():
    ' Very simple embedding of a polynomial chart\n\n    '
    args = flask.request.args
    color = colors[getitem(args, 'color', 'Black')]
    _from = int(getitem(args, '_from', 0))
    to = int(getitem(args, 'to', 10))
    x = list(range(_from, (to + 1)))
    fig = figure(title='Polynomial')
    fig.line(x, [(i ** 2) for i in x], color=color, line_width=2)
    js_resources = INLINE.render_js()
    css_resources = INLINE.render_css()
    (script, div) = components(fig, INLINE)
    html = flask.render_template('embed.html', plot_script=script, plot_div=div, js_resources=js_resources, css_resources=css_resources, color=color, _from=_from, to=to)
    return encode_utf8(html)

dataset/ETHPy150Open bokeh/bokeh/examples/embed/simple/simple.py polynomial/original