Re: python as pen and paper substitute

2010-04-10 Thread Manuel Graune
Michael Torrie torr...@gmail.com 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

Re: python as pen and paper substitute

2010-04-09 Thread Giacomo Boffi
Manuel Graune manuel.gra...@koeln.de writes: Giacomo Boffi giacomo.bo...@polimi.it writes: Manuel Graune manuel.gra...@koeln.de 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

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-08 Thread Giacomo Boffi
Manuel Graune manuel.gra...@koeln.de 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-08 Thread Manuel Graune
Giacomo Boffi giacomo.bo...@polimi.it writes: Manuel Graune manuel.gra...@koeln.de 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

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 johan.gronqv...@gmail.com writes: Manuel Graune skrev: Manuel Graune manuel.gra...@koeln.de writes: Just as an additional example, let's assume I'd want to add the area of to circles. [...] which

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 johan.gronqv...@gmail.com writes: Manuel Graune skrev: Manuel Graune manuel.gra...@koeln.de writes: Just as an additional example, let's assume I'd want to add the area of to circles. [...] which

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). This

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

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 this to

Re: python as pen and paper substitute

2010-04-06 Thread Manuel Graune
Thanks for your reply. Johan Grönqvist johan.gronqv...@gmail.com 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 =\t,

Re: python as pen and paper substitute

2010-04-06 Thread Manuel Graune
Manuel Graune manuel.gra...@koeln.de 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

Re: python as pen and paper substitute

2010-04-06 Thread Manuel Graune
Manuel Graune manuel.gra...@koeln.de 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

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 Johan Grönqvist
Manuel Graune skrev: Manuel Graune manuel.gra...@koeln.de 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

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

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 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,

Re: python as pen and paper substitute

2010-04-06 Thread Ethan Furman
Manuel Graune wrote: Manuel Graune manuel.gra...@koeln.de 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