Re: python as pen and paper substitute

2010-04-10 Thread Manuel Graune
Michael Torrie writes: > > Did you look at the link to Owen Taylor's reinteract program? I think > it's closer to what you want than any other thing mentioned here, with > the exception that it's a standalone GTK (graphical) app. Yes, I did. And I think this program is a great lightweight alerna

Re: python as pen and paper substitute

2010-04-09 Thread Michael Torrie
On 04/08/2010 02:54 PM, Manuel Graune wrote: > > Well, the subject does say python and not elisp, but I'm a vim-user > anyways. Did you look at the link to Owen Taylor's reinteract program? I think it's closer to what you want than any other thing mentioned here, with the exception that it's a

Re: python as pen and paper substitute

2010-04-09 Thread Giacomo Boffi
Manuel Graune writes: > Giacomo Boffi writes: > >> Manuel Graune writes: >> >>> Hello everyone, >>> >>> I am looking for ways to use a python file as a substitute for simple >>> pen and paper calculations. >> >> search("embedded calc mode") if manuel in emacs_fellows_set or sys.exit(1) > > Well

Re: python as pen and paper substitute

2010-04-08 Thread Manuel Graune
Giacomo Boffi writes: > Manuel Graune writes: > >> Hello everyone, >> >> I am looking for ways to use a python file as a substitute for simple >> pen and paper calculations. > > search("embedded calc mode") if manuel in emacs_fellows_set or sys.exit(1) Well, the subject does say python and not

Re: python as pen and paper substitute

2010-04-08 Thread Giacomo Boffi
Manuel Graune writes: > Hello everyone, > > I am looking for ways to use a python file as a substitute for simple > pen and paper calculations. search("embedded calc mode") if manuel in emacs_fellows_set or sys.exit(1) -- http://mail.python.org/mailman/listinfo/python-list

Re: python as pen and paper substitute

2010-04-07 Thread Michael Torrie
On 04/06/2010 12:40 PM, Manuel Graune wrote: > Hello everyone, > > I am looking for ways to use a python file as a substitute for simple > pen and paper calculations. At the moment I mainly use a combination > of triple-quoted strings, exec and print (Yes, I know it's not exactly > elegant). Thi

Re: python as pen and paper substitute

2010-04-07 Thread Manuel Graune
Hello Johan, thanks to you (and everyone else who answered) for your effort. Johan Grönqvist writes: > Manuel Graune skrev: >> Manuel Graune writes: >> >> Just as an additional example, let's assume I'd want to add the area of >> to circles. >> [...] >> which can be explained to anyone who kno

Re: python as pen and paper substitute

2010-04-07 Thread Manuel Graune
Hello Johan, thanks to you (and everyone else who answered) for your effort. Johan Grönqvist writes: > Manuel Graune skrev: >> Manuel Graune writes: >> >> Just as an additional example, let's assume I'd want to add the area of >> to circles. >> [...] >> which can be explained to anyone who kno

Re: python as pen and paper substitute

2010-04-06 Thread Ethan Furman
Manuel Graune wrote: Manuel Graune writes: The use-case is acually fairly simple. The point is to use a python source-file as subsitute for scrap-paper (with the opportunity to edit what is already written and without illegible handwriting). The output should 1) show manually selected python c

Re: python as pen and paper substitute

2010-04-06 Thread James Stroud
Manuel Graune wrote: Hello everyone, I am looking for ways to use a python file as a substitute for simple pen and paper calculations. At the moment I mainly use a combination of triple-quoted strings, exec and print (Yes, I know it's not exactly elegant). To clarify, I just start an editor, wri

Re: python as pen and paper substitute

2010-04-06 Thread Chris Colbert
you may have a look at sage: http://www.sagemath.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: python as pen and paper substitute

2010-04-06 Thread Dave Angel
Johan Gr wrote: Manuel Graune skrev: Thanks for your reply. The output should 1) show manually selected python code and comments (whatever I think is important), 2) show selected results (final and intermediate) and 3) *not* show python code that for someone only interested in the calculati

Re: python as pen and paper substitute

2010-04-06 Thread Johan Grönqvist
Manuel Graune skrev: Manuel Graune writes: Just as an additional example, let's assume I'd want to add the area of to circles. [...] which can be explained to anyone who knows basic math and is not at all interested in python. Third attempt. The markup now includes tagging of different parts

Re: python as pen and paper substitute

2010-04-06 Thread Johan Grönqvist
Manuel Graune skrev: Thanks for your reply. The output should 1) show manually selected python code and comments (whatever I think is important), 2) show selected results (final and intermediate) and 3) *not* show python code that for someone only interested in the calculation and the results

Re: python as pen and paper substitute

2010-04-06 Thread Manuel Graune
Manuel Graune writes: > > The use-case is acually fairly simple. The point is to use a python > source-file as subsitute for scrap-paper (with the opportunity to > edit what is already written and without illegible handwriting). > The output should 1) show manually selected python code and commen

Re: python as pen and paper substitute

2010-04-06 Thread Manuel Graune
Manuel Graune writes: > > The use-case is acually fairly simple. The point is to use a python > source-file as subsitute for scrap-paper (with the opportunity to > edit what is already written and without illegible handwriting). > The output should 1) show manually selected python code and commen

Re: python as pen and paper substitute

2010-04-06 Thread Manuel Graune
Thanks for your reply. Johan Grönqvist writes: > Manuel Graune skrev: >> To clarify, I just start an editor, write a file that >> might look something like this: >> >> -snip- >> code=""" >> a = 1 >> b = 2 >> c = 3 >> result = a + b >> """ >> exec(code) >> print(code) >> print("result

Re: python as pen and paper substitute

2010-04-06 Thread Johan Grönqvist
Manuel Graune skrev: To clarify, I just start an editor, write a file that might look something like this: -snip- code=""" a = 1 b = 2 c = 3 result = a + b """ exec(code) print(code) print("result =\t", result) print("result + c =\t", result + c) -snip-- and feed thi

python as pen and paper substitute

2010-04-06 Thread Manuel Graune
Hello everyone, I am looking for ways to use a python file as a substitute for simple pen and paper calculations. At the moment I mainly use a combination of triple-quoted strings, exec and print (Yes, I know it's not exactly elegant). To clarify, I just start an editor, write a file that might lo