Display IPython variables without entering using whos

Christopher Dorian picture Christopher Dorian · Aug 16, 2012 · Viewed 11k times · Source

Is there a way to view a list of the IPython variables currently in the workspace without having to send the command 'whos'. I often find myself not remembering what variable names I want to use while typing a command.

In IPython, I have to erase the current line I was typing and send a 'whos' statement to see which variables are currently available. Normally, in GUI based tools like MATLAB I would just look to the right at my Workspace Variable window.

Answer

gg349 picture gg349 · Aug 17, 2012

As others said, you can have as many frontends as you like on the same Ipython kernel, i.e 2 command windows for one kernel for example. If you are using the Qt console, shortcuts can get you close to what you want.

Start a second tab with the same kernel with Ctrl+Shift+T. Then you just write your code on the first tab, and, when you need the output of whos, press Ctrl+PageDown to get to the other tab, and you can run whos without deleting your code in the first tab.