471,593 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,593 software developers and data experts.

IPython Article on O'Reilly's ONLamp site

I've written an article on IPython which is now live on O'Reilly's
ONLamp site at
http://www.onlamp.com/pub/a/python/2...7/ipython.html. All
feedback is welcome. Regardless of what you may think of the article, I
hope it encourages everyone to at least try out IPython. IPython has
become an indispensible tool in my toolbox. I cannot say enough great
things about it.

Jeremy Jones

Jul 18 '05 #1
1 1629
>>>>> "Jeremy" == Jeremy Jones <za******@bellsouth.net> writes:

Jeremy> feedback is welcome. Regardless of what you may think of
Jeremy> the article, I hope it encourages everyone to at least try
Jeremy> out IPython. IPython has become an indispensible tool in
Jeremy> my toolbox. I cannot say enough great things about it.

I've said this before, but I'd just like to add that IPython (with the
pysh profile) makes a damn fine command prompt for Windows. The loss
of job control is not a problem there, because it never was there in
the first place.

Even if you never use the underlying Python functionality, you can
enjoy the Bash-like filename completion (the only way to fly - the
windows "4dos-style" completion doesn't cut it for me). I've never
really trusted Bash (from cygwin) in Windows, it has always felt very
alien. Just install ipython and the "unxutils" package, and windows
command prompt suddenly becomes usable.

What is essential for me (because I deal with complex source trees) is
the persistent "bookmark functionality" for directories (yes,
Fernando, this is a shameless plug ;-):

Lines starting w/ @POR078 are commands typed by the user.

------- ipython session -------------

@POR078[prj]|22> %bookmark?

Manage IPython's bookmark system.

%bookmark <name> - set bookmark to current dir
%bookmark <name> <dir> - set bookmark to <dir>
%bookmark -l - list all bookmarks
%bookmark -d <name> - remove bookmark
%bookmark -r - remove all bookmarks

You can later on access a bookmarked folder with:
%cd -b <name>
or simply '%cd <name>' if there is no directory called <name> AND
there is such a bookmark defined.

Your bookmarks persist through IPython sessions, but they are
associated with each profile.

@POR078[testrunner]|24> %bookmark tr
@POR078[testrunner]|25> cd /prj/SyncML/doc/
@POR078[doc]|26> %bookmark smldoc
@POR078[doc]|27> Exit

(IPython exits, I start a new session)

@POR078[environmentswitch]|1> cd tr
(bookmark:tr) -> C:\prj\testrunner
@POR078[testrunner]|3> cd smldoc
(bookmark:smldoc) -> C:\prj\SyncML\doc
@POR078[doc]|4>

--
Ville Vainio http://tinyurl.com/2prnb
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Mark Lutz | last post: by
1 post views Thread by Yaroslav Bulatov | last post: by
6 posts views Thread by Zhang Le | last post: by
3 posts views Thread by Dave Merrill | last post: by
10 posts views Thread by Paul McGuire | last post: by
reply views Thread by Fernando Perez | last post: by
2 posts views Thread by Daniel Mark | last post: by
5 posts views Thread by Lou Pecora | last post: by
2 posts views Thread by Greg Donald | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by Anwar ali | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.