-
Notifications
You must be signed in to change notification settings - Fork 124
IPython console plugin
This plugin uses the ipython library to provide an embedded console in DataExplore. It is not a feature of the pandastable widget. Note that some features are not yet present such as tab completion.
Open the plugin from the plugin menu. A console frame will appear below the table. Here you can call any Python commands and some shell commands provided in ipython. The table dataframe can be manipulated using python code and then redrawn to update the gui.
The current table is accessed using the variable name 'table'. The current table data structure (the dataframe) is initially assigned to the variable 'df' for convenience. pandas and numpy are imported as pd and np.
##Example
Transpose the current table and update:
table.model.df = df.T table.redraw()
##References