This works in a python 3.6 environment with bokeh and flask installed. To use this you need the following directory structure:
app/
- templates/
- hello.html
- bokeh-slider.py
- hello.py
After that you need to open two terminals at app/, in the first one you need to run the bokeh server with the command: