Show Bokeh and Pyvis plots
DataLab supports most visualisation libraries available for Python and R like matplotlib and plotly. Some visualisation libraries require special attention to correctly generate output in DataLab.
Python
Bokeh (docs)
DataLab does not natively support outputs from Bokeh. The guide outlined in the Bokeh docs for Jupyter notebooks is not supported. In DataLab it is required to generate a HTML output. You can use the following helper function to display a Bokeh graph:
Pyvis (docs)
Pyvis writes outputs to HTML files. The following example contains a helper function display_pyvis
which takes a pyvis graph and a name as arguments and will return the HTML output of the graph.
Last updated