The plot generated above looks both impressive and informative at the same time. We might want to publish this plot on a website or in a magazine/journal as a .PNG image with a higher level of quality. Luckily for us, Bokeh offers this flexibility.
Bokeh can generate such images by using the export function. This function uses a browser called Webkit to save the plot in its memory and capture a screenshot. The dimensions of the generated image will be the same as that of the plot you created.
The first step is to install a dependency that this Bokeh functionality depends upon. This is called Phantomjs. You can install this package using Anaconda with the command shown here:
conda install selenium phantomjs pillow
The next step is to install Selenium using pip. We can do this by using the command shown here:
pip3 install selenium
The final step is...