So I figured that the slider function in Bokeh would be useful for my project and I had a look at the example in the official website: http://docs.bokeh.org/en/latest/docs/gallery/slider.html#slider-py
I copied the code exactly as it showed on the website. It ran perfectly fine, and created an identical graph. The only problem was that the slider widget didn't actually do anything. The graph stayed exactly the same, unlike the one that is shown on the webpage.
I am using Jupyter QtConsole. Does anyone has any idea what went wrong? Your effort will be very much appreciated.