r/IPython • • May 01 '13

Which version of IPython do you use? Terminal, QtConsole, or Notebook? Why?

11 Upvotes

17 comments sorted by

3

u/Patorogo May 01 '13

Personally, I use the terminal version, because I'm a vim keybindings junkie. But the the syntax highlighting and better multiline editing of the QtConsole are nice. I still haven't given the notebook a proper try.

7

u/tookitook May 01 '13

Notebook, since I mainly do "research programming". That imply rerunning small chunks of code many times and plenty of figures. Notebook is the best for this type of work :-)

4

u/georgetd May 01 '13

I've always used the terminal, actually it was only recently I discovered there were other options (I'm a little behind). But, I've seen the notebook and while it's cool it's not compelling for everyday use. And I don't feel the need to shove the terminal into a GUI.

4

u/m3wolf May 01 '13

Notebook for data analysis, terminal for software development.

3

u/bheklilr May 01 '13

I haven't played much with the QtConsole or Notebook, primarily because I mostly live in a terminal already.

3

u/MillardFillmore May 02 '13

It's becoming more that I'm using Notebook for Python, not just IPython. It's just so damn useful for data analysis and visualization.

2

u/takluyver May 01 '13

All of them!

2

u/gash789 May 01 '13

Terminal for anything "quick", I'm trying to move scripting to the notebook but until it has the autosave and changing directory features in the next major update it's not quite there. I have seen no reason to use the QtConsole yet but haven't learnt enough about it.

4

u/fperez_org May 02 '13

2

u/gash789 May 02 '13

Took a double take upon seeing your username, thanks so much for all your excellent work!

2

u/NomadNella May 01 '13

It may not have autosave but it does now give you a warning when you are going to close an unsaved notebook. I am with you about the directory navigation feature though. I have a couple shell script I put icons on to load IPython Notebook in directories I use frequently.

#!/bin/sh
cd /home/me/Documents/CODE/Programing/Python/IPython
ipython3 notebook --pylab inline

and

#!/bin/sh
cd "/home/me/Documents/CODE/Programing/Python/GIT test/ipython-in-depth/notebooks"
ipython3 notebook --pylab inline

1

u/gash789 May 02 '13

Thanks for the details, I don't quite understand what you mean by "I put icons on to load..." I recognise the code as bash script but where would you save these so you can access them from anywhere? Sorry for the basic questions.

1

u/NomadNella May 02 '13

I've been leaving my IPython scripts on my desktop but I've put other scripts into my sidebar launcher using the technique found here. The bullet point version is:

  • Make the shell script that you want to run.

  • Create a .desktop file to call the script.

    • Make sure it has everything it needs in it to work.

  • Put the .desktop in the ~/.local/share/applications directory.

  • Log out / Log in

Your new icon is available in the Dash so you can drag it into your sidebar.

I have heard of other (possibly simpler) ways to do it but this is the only one I have used.

FYI if you make a lot of these scripts you might want to keep them in a drawer.

One last thing, if you leave the scripts on your desktop like I do, you need to make them executable. You can do this and change their icon by accessing their properties with a right click. To change the icon click on it where it appears within the properties window.

2

u/joelotz May 05 '13

I've traditionally used an IDE like Spyder or PyScripter - but like some of the other commenters said, I do a lot of code snippets. I play with data, test things out, make a plot for verification, etc. The ipython notebook makes this process super awesome! I can do snippets and run certain sections whenever I want, make comments, then post the work on nbviewer for others to review.