Execute each of these cells in order, such as with
First, load your DataTablesWidget
from your module:
In [1]:
from ipython_datatableswidget.widgets.datatables import DataTablesWidget, show_df
Then, create an instance of DataTablesWidget
:
In [2]:
#datatablesExample = DataTablesWidget()
Display the widget:
In [3]:
import pandas as pd
In [4]:
df = pd.DataFrame({'a': [1,2,3,4], 'b': ['Hello', 'I', 'am', 'Widget']})
In [5]:
x = show_df(df)
In [6]:
x
In [11]:
dfB = pd.DataFrame({'column1': pd.np.random.normal(size=100)})
In [18]:
DataTablesWidget(dfB.reset_index())
In [13]:
DataTablesWidget(dfB)
You can have more than one copy of your DataTablesWidget
In [ ]: