Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to create interactive plots (a la D3) in IPython notebooks?

I found those two answers: Animated graphs in ipython notebook , How to grab matplotlib plot as html in ipython notebook?

But they don't address interactivity. I would like to display a plot with 2-3 curves and let the user hover those curves to receive more details or control the parameters that are used to generate those curves from a combo-box

like image 276
d1337 Avatar asked Jul 05 '13 07:07

d1337


People also ask

How do you display plots in Jupyter Notebook?

Jupyter Notebook - Big Data Visualization Tool IPython kernel of Jupyter notebook is able to display plots of code in input cells. It works seamlessly with matplotlib library. The inline option with the %matplotlib magic function renders the plot out cell even if show() function of plot object is not called.

What is IPython interactive?

IPython (Interactive Python) is a command shell for interactive computing in multiple programming languages, originally developed for the Python programming language, that offers introspection, rich media, shell syntax, tab completion, and history.

What does %Matplotlib notebook do?

In the IPython notebook, you also have the option of embedding graphics directly in the notebook, with two possible options: %matplotlib notebook will lead to interactive plots embedded within the notebook.


1 Answers

check the following answer at iPython: Manipulate-like command.

as well as the two following directions:

  1. IPython interact/ive as motivated in IPython - The Attributes ofSoftware and How They Affect Our Work - Brian Granger near 32m:12s; and available at IPython's github
  2. Altair provides a powerful and succinct syntax, based on vega-lite; see the gallery
  3. MPLD3: Bringing Matplotlib to the Browser
like image 153
eldad-a Avatar answered Oct 06 '22 14:10

eldad-a