We have previously introduced the new interactive features of the IPython notebook 2.0. In this recipe, we dive deeper into the subject by showing how to go beyond the existing widgets provided by IPython 2.0. Specifically, we will create a custom JavaScript-based widget that communicates with the Python kernel.
Specifically, we will create a basic interactive Excel-like data grid editor in the IPython notebook, compatible with pandas' DataFrame
. Starting from a DataFrame
object, we will be able to edit it within a GUI in the notebook. The editor is based on the Handsontable
JavaScript library (http://handsontable.com). Other JavaScript data grid editors could be used as well.
You will need both IPython 2.0+ and the Handsontable JavaScript library for this recipe. The following are the instructions to load this Javascript library in the IPython notebook:
First, go to https://github.com/handsontable...