Appropriate for copying the python sample in the text of "Open Source Learning Social Network Analysis: Finding" Connections "on the Social Web" Command line example:
Shell command
ipython -i -c '%doctest_mode' --pylab
Even where it is not explicitly stated, it probably assumes the Ipython environment specified by pylab. The prompt in the sample is > >>
, so doctest_mode should also be set.
The interactive samples of Python books in this genre are probably written for Ipython in doctest_mode.
Recommended Posts