Visualizations and dashboards#
Data Science & AI Workbench makes it easy for you to create and share interactive data visualizations, live notebooks or machine learning models built using popular libraries such as Bokeh and HoloViews.
To get you started quickly, Workbench provides sample projects of Bokeh applications for clustering and cross filtering data. There are also several examples of Workbench projects that use HoloViz here.
To create an interactive plot:
From the Projects view, create a new project using the minimal Python templates:
Open a session for your newly created project.
Open a terminal.
Run the following command to install
hvplot
andpanel
:anaconda-project add-packages hvplot panel
Create a new Notebook and rename it to
tips.ipynb
.Add the following code to
tips.ipynb
:import pandas as pd import hvplot.pandas import panel panel.extension() df = pd.read_csv('http://bit.ly/tips-csv') p = df.hvplot.scatter(x='total_bill', y='tip', hover_cols=['sex','day','size']) pn.panel(p).servable()
Note
In this example, the data is being read from the Internet. Alternatively, you could download the
.csv
and upload it to the project.Open the project’s
anaconda-project.yml
file, and add the following deployment command:commands: scatter-plot: unix: panel serve tips.ipynb supports_http_options: True
Tip
For a deeper dive into data visualization, follow this HoloViz tutorial.