bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] Documentation: Looking for documentation on python scrip


From: Martin Micklinghoff
Subject: Re: [Bug-gnubg] Documentation: Looking for documentation on python scripting
Date: Mon, 30 Dec 2013 21:28:01 +0100

Hi Michael,
 
Thanks a lot for you help! I've followed the steps, got the latest version from cvs, and built from source. Also have ipython installed, and the ">" command takes me to an ipython shell. I'm curious where I can take it from here, as in 'where can I find a list of modules and methods', and 'how can uses methods from as python script as opposed to from a command line'?

Thanks a lot in advance, and happy new year ;) Martin


On Mon, Dec 30, 2013 at 5:51 PM, Michael Petch <address@hidden> wrote:
On 2013-12-30 09:40, Michael Petch wrote:
> Let me know if you are able to build it. I am recommending using the
> latest and greatest as there have been a number of Python bug fixes over
> the years. Using the latest doesn't improve the documentation unfortunately.

One other thing that is supported is the usage of the ipython command
interface. After building and installing GNUBG, consider installing this
package:

sudo apt-get install ipython

when running GNUBG it will use ipython if it is detected on your system.
You can tell if it is being used by launching gnubg with the -t
parameter like (this assumes you built from source and did a sudo make
install):

/usr/local/bin/gnubg -t

then at the GNUBG prompt issue a greater than sign on a line by itself,
like:

>

That should return something (version may be different) like:

IPython 0.13.1, Python 2.7.3 (default, Jan  2 2013, 14:09:21)
[GCC 4.7.2]

In <1> >

I prefer ipython for early development as it has some useful
functionality not found in the typical python command shell.

--
Michael Petch
CApp::Sysware Consulting Ltd.
OpenPGP FingerPrint=D81C 6A0D 987E 7DA5 3219 6715 466A 2ACE 5CAE 3304


reply via email to

[Prev in Thread] Current Thread [Next in Thread]