Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'example:': 0.03; 'skip:[ 20': 0.03; 'output': 0.04; 'subject:Python': 0.05; 'cc:addr:googlegroups.com': 0.09; 'repl': 0.09; 'cc:addr:python- list': 0.10; '(other': 0.16; '(something': 0.16; 'snippets': 0.16; 'sphinx,': 0.16; 'wrote:': 0.17; 'typing': 0.17; 'received:74.125.82.174': 0.23; 'example': 0.23; 'cc:no real name:2**0': 0.24; 'cc:2**1': 0.24; 'command': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'run': 0.28; 'probably': 0.29; 'class': 0.29; "i'm": 0.29; 'error': 0.30; 'code': 0.31; 'received:74.125.82': 0.33; 'like:': 0.33; 'skip:- 50': 0.34; 'received:google.com': 0.34; 'pm,': 0.35; 'something': 0.35; 'but': 0.36; 'message-id:@gmail.com': 0.36; 'received:74.125': 0.36; 'url:org': 0.36; "i'll": 0.36; 'subject:: ': 0.38; 'url:en': 0.38; 'received:192': 0.39; 'received:192.168': 0.40; 'header:Received:5': 0.40; 'think': 0.40; 'url:index': 0.61; 'url:png': 0.63; 'show': 0.63; 'url:i': 0.78; 'url:imgur': 0.84; 'well..': 0.84; 'look.': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=l9GEOS4TTokhIYVlHCQHCEfB0Z6FMkyPvIiUfoOE3Xk=; b=EByeKrPRS+xdyoZp0nUjFEpug3jF/VMS/Qk0Nxv3LbVl2CgjC6JABZi+haolhfhlJe e6aQeeF6sH9z75QXAgN0jLzSF5aVIWSvXaXvTbhbxICbKtsLuhf7V82/NALKWjmsYbdq zbzppVOVDg6VgDSvbjCNw8PMzhd7YodS6wVwyNxRP8llifNnWtX2Vp7z2vPK0jPc2c09 3l7LHyvrNqxFKkgI1Sq8CBRcFv7iKn1xTPmYhHLxBf7fypAqpY8xJNPg0YL9uhoBAjZ8 e4Yd3lP/N3zdMR8TrAP2T2c2hBW//Dn87rwhplOoW+Lc6eBsfhFgjgGFqv8Ez0YE8WIv 7PHQ== Date: Fri, 14 Sep 2012 00:15:49 +0100 From: Andrea Crotti User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120828 Thunderbird/15.0 MIME-Version: 1.0 To: Miki Tebeka Subject: Re: Python presentations References: <3540adcc-cf2d-46a8-a822-a3183d5ea944@googlegroups.com> In-Reply-To: <3540adcc-cf2d-46a8-a822-a3183d5ea944@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: python-list , comp.lang.python@googlegroups.com X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 31 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1347578212 news.xs4all.nl 6862 [2001:888:2000:d::a6]:38178 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:29087 On 09/13/2012 11:58 PM, Miki Tebeka wrote: >> What do you think work best in general? > I find typing during class (other than small REPL examples) time consuming and error prone. > > What works well for me is to create a slidy HTML presentation with asciidoc, then I can include code snippets that can be also run from the command line. > (Something like: > > [source,python,numbered] > --------------------------------------------------- > include::src/sin.py[] > --------------------------------------------------- > > Output example: http://i.imgur.com/Aw9oQ.png > ) > > Let me know if you're interested and I'll send you a example project. > > HTH, > -- > Miki Yes please send me something and I'll have a look. For my slides I'm using hieroglyph: http://heiroglyph.readthedocs.org/en/latest/index.html which works with sphinx, so in theory I might be able to run the code as well.. But in general probably the best way is to copy and paste in a ipython session, to show that what I just explained actually works as expected..