Generating Your First Figure to a Static HTML File
More information about
output_file() can be found in the Bokeh official docs.
# Bokeh Libraries from bokeh.io import output_file from bokeh.plotting import figure, show # The figure will be rendered in a static HTML file # called output_file_test.html output_file('output_file_test.html', title='Empty Bokeh Figure') # Set up a generic figure() object fig = figure() # See what it looks like show(fig)
Become a Member to join the conversation.