Skip to content

Instantly share code, notes, and snippets.

@benman1
benman1 / bokeh_server.py
Created April 23, 2018 20:27
bokeh server with data update and plot endpoints
from bokeh.embed import components
from bokeh.core.templates import FILE
from bokeh.models import ColumnDataSource, DataRange1d, Plot
from bokeh.models.glyphs import Line
from bokeh.resources import INLINE
from bokeh.util.string import encode_utf8
from flask import Flask, request, jsonify
import numpy as np