Learn practical skills, build real-world projects, and advance your career

Interactive Visualization with Plotly

This tutorial is a part of the Zero to Data Science Bootcamp by Jovian

alt

Plotly is a Python library used for creating interactive visualizations (graphs & charts). Unlike Matplotlib and Seaborn which create static images, Plotly renders an HTML document and uses JavaScript under the hood to enable interactivity. Plotly also offers a large selection of chart types to choose from.

The following topics are covered in this tutorial:

  • Creating figures & adding interactive elements
  • A quick tour of popular interactive charts
  • Using Plotly as a plotting backend for Pandas
  • Creating and exploring 3D graphs
  • Adding controls and animating graphs

How to run the code

This tutorial is an executable Jupyter notebook hosted on Jovian. You can run this tutorial and experiment with the code examples in a couple of ways: using free online resources (recommended) or on your computer.

Option 1: Running using free online resources (1-click, recommended)

The easiest way to start executing the code is to click the Run button at the top of this page and select Run on Binder. You can also select "Run on Colab" or "Run on Kaggle", but you'll need to create an account on Google Colab or Kaggle to use these platforms.

Option 2: Running on your computer locally

To run the code on your computer locally, you'll need to set up Python, download the notebook and install the required libraries. We recommend using the Conda distribution of Python. Click the Run button at the top of this page, select the Run Locally option, and follow the instructions.

Let's begin by installing and importing the required libraries.

pip install jovian pandas numpy plotly --upgrade --quiet