Re: Preparing teaching materials

2009-03-21 Thread R. David Murray
"Rhodri James" wrote: > On Fri, 20 Mar 2009 11:58:18 -, wrote: > > > I am considering teaching a beginning programming course using Python. > > I would like to prepare my class handouts in such a way that I can > > import the Python code from real ".py" files directly into the > > documents.

Re: Preparing teaching materials

2009-03-21 Thread Rhodri James
On Fri, 20 Mar 2009 11:58:18 -, wrote: I am considering teaching a beginning programming course using Python. I would like to prepare my class handouts in such a way that I can import the Python code from real ".py" files directly into the documents. This way I can run real unit tests on th

Re: Preparing teaching materials

2009-03-21 Thread grkuntzmd
Very nice. I printed out the PDF manual for sphinx. I'll take a look at it. -- http://mail.python.org/mailman/listinfo/python-list

Re: Preparing teaching materials

2009-03-20 Thread André
On Mar 20, 8:58 am, grkunt...@gmail.com wrote: > I am considering teaching a beginning programming course using Python. > I would like to prepare my class handouts in such a way that I can > import the Python code from real ".py" files directly into the > documents. This way I can run real unit tes

Re: Preparing teaching materials

2009-03-20 Thread Terry Reedy
Michele Simionato wrote: The interesting thing is that Sphinx uses pygments and can highlight any code fragment, not only Python code. For instance, last week I did some experiment with Sphinx to convert my "Adventures of a Pythonista in Schemeland" (which contains Scheme code) to PDF and it wor

Re: Preparing teaching materials

2009-03-20 Thread Michele Simionato
On Mar 20, 3:05 pm, Tim Golden wrote: > Michele Simionato wrote: > > >http://www.phyast.pitt.edu/~micheles/scheme/TheAdventuresofaPythonist... > > > (I think the OP may be interested in how the PDF output of > > Sphinx-generated documents may look like). > > That looks really snappy. Do you have t

Re: Preparing teaching materials

2009-03-20 Thread Tim Golden
Michele Simionato wrote: The interesting thing is that Sphinx uses pygments and can highlight any code fragment, not only Python code. For instance, last week I did some experiment with Sphinx to convert my "Adventures of a Pythonista in Schemeland" (which contains Scheme code) to PDF and it work

Re: Preparing teaching materials

2009-03-20 Thread Michele Simionato
On Mar 20, 1:44 pm, Tim Golden wrote: > Michele Simionato wrote: > > One word: Sphinx. > > And the second word(s): > > ..  literalinclude:: example.py > > TJG The interesting thing is that Sphinx uses pygments and can highlight any code fragment, not only Python code. For instance, last week I di

Re: Preparing teaching materials

2009-03-20 Thread Tim Golden
Michele Simionato wrote: On Mar 20, 12:58 pm, grkunt...@gmail.com wrote: I am considering teaching a beginning programming course using Python. I would like to prepare my class handouts in such a way that I can import the Python code from real ".py" files directly into the documents. This way I

Re: Preparing teaching materials

2009-03-20 Thread Michele Simionato
On Mar 20, 12:58 pm, grkunt...@gmail.com wrote: > I am considering teaching a beginning programming course using Python. > I would like to prepare my class handouts in such a way that I can > import the Python code from real ".py" files directly into the > documents. This way I can run real unit te