Skip to content

IPython console plugin

Damien Farrell edited this page Jan 9, 2016 · 5 revisions

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.

Usage

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

https://ipython.org/ipython-doc/3/interactive/tutorial.html

Clone this wiki locally