{"id":4902,"date":"2019-08-11T13:22:17","date_gmt":"2019-08-11T12:22:17","guid":{"rendered":"https:\/\/www.blopig.com\/blog\/?p=4902"},"modified":"2019-08-11T13:22:20","modified_gmt":"2019-08-11T12:22:20","slug":"python-handout","status":"publish","type":"post","link":"https:\/\/www.blopig.com\/blog\/2019\/08\/python-handout\/","title":{"rendered":"Python Handout"},"content":{"rendered":"\n<p>Many OPIGlets extensively use <a href=\"https:\/\/jupyter.org\/\">Jupyter<\/a> (in either Notebook or Lab flavour) to prototype and present their work. However, as project progress frequently notebooks are converted into regular python files for a number of reasons, losing the notebook functionality.<\/p>\n\n\n\n<p>Wouldn&#8217;t it be nice if we could combine some of the benefits of Jupyter notebooks (not least the ability to present both code &amp; results naturally) with regular python files?<\/p>\n\n\n\n<p>Enter <a href=\"https:\/\/github.com\/danijar\/handout\">Python Handout<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"625\" height=\"344\" loading=\"lazy\" src=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2019\/08\/python_handout.png?resize=625%2C344&#038;ssl=1\" alt=\"\" class=\"wp-image-4903\" srcset=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2019\/08\/python_handout.png?resize=1024%2C564&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2019\/08\/python_handout.png?resize=300%2C165&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2019\/08\/python_handout.png?resize=768%2C423&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2019\/08\/python_handout.png?resize=624%2C344&amp;ssl=1 624w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2019\/08\/python_handout.png?w=1443&amp;ssl=1 1443w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2019\/08\/python_handout.png?w=1250&amp;ssl=1 1250w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/figure>\n\n\n\n<p>Python Handout was recently (5th August 2019) released by <a href=\"https:\/\/danijar.com\/\">Danijar Hafner<\/a> and allows Python scripts to be converted into handouts with Markdown comments and inline figures (see above picture).<\/p>\n\n\n\n<p>Installation is via pip (<code>pip3 install -U handout<\/code>) and Python Handout supports python 3 scripts.<\/p>\n\n\n\n<p>While I&#8217;ve not used Handout much (yet), I will definitely be experimenting more in the coming weeks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many OPIGlets extensively use Jupyter (in either Notebook or Lab flavour) to prototype and present their work. However, as project progress frequently notebooks are converted into regular python files for a number of reasons, losing the notebook functionality. Wouldn&#8217;t it be nice if we could combine some of the benefits of Jupyter notebooks (not least [&hellip;]<\/p>\n","protected":false},"author":50,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","wikipediapreview_detectlinks":true,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"ngg_post_thumbnail":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[14,221,15],"tags":[],"ppma_author":[535],"class_list":["post-4902","post","type-post","status-publish","format-standard","hentry","category-howto","category-python","category-technical"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"authors":[{"term_id":535,"user_id":50,"is_guest":0,"slug":"fergus2","display_name":"Fergus Imrie","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/19c18fa7f4d0a2aecc5f69760c6a9f2fc9b493dfe45b1fd333ccb447db9d6a90?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/posts\/4902","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/users\/50"}],"replies":[{"embeddable":true,"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/comments?post=4902"}],"version-history":[{"count":2,"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/posts\/4902\/revisions"}],"predecessor-version":[{"id":4905,"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/posts\/4902\/revisions\/4905"}],"wp:attachment":[{"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/media?parent=4902"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/categories?post=4902"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/tags?post=4902"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=4902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}