{"id":102030,"date":"2019-09-09T22:13:26","date_gmt":"2019-09-09T22:13:26","guid":{"rendered":"http:\/\/ahay.org\/blog\/?p=102030"},"modified":"2019-09-09T22:13:26","modified_gmt":"2019-09-09T22:13:26","slug":"scons2jupyter","status":"publish","type":"post","link":"https:\/\/ahay.org\/blog\/2019\/09\/09\/scons2jupyter\/","title":{"rendered":"scons2jupyter"},"content":{"rendered":"<p><a href=\"https:\/\/github.com\/ahay\/src\/blob\/master\/framework\/rsf\/scons2jupyter.py\">scons2jupyter<\/a> is a simple script that converts a Madagascar-style <tt> SConstruct<\/tt> file to a <a href=\"https:\/ \/jupyter.org\/\">Jupyter<\/a>  notebook with a Python interface.<\/p>\n<p>You can use it by simply running<\/p>\n<div class=\"code-box\"><div class=\"code-title\"><i class=\"fa fa-code\"><\/i> <div class=\"pull-right\"><a href=\"#\" class=\"btn btn-default btn-xs toggle-code\" data-toggle=\"tooltip\" title=\"Toggle code\"><i class=\"fa fa-toggle-up\"><\/i><\/a><\/div><\/div><pre ><code class=\"bash\">scons2jupyter &lt; SConstruct &gt; mynotebook.ipynb\n<\/code><\/pre><\/div>\n<p>An <a href=\"https:\/\/github.com\/ahay\/src\/blob\/master\/book\/bei\/vela\/vscan\/vscan.ipynb\">example notebook<\/a> is the result of running <strong>scons2jupyter<\/strong> in <a href=\"\/RSF\/book\/bei\/vela\/vscan.html\">bei\/vela\/vscan<\/a>.<\/p>\n<p><img decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2019\/09\/Screen-Shot-2019-09-09-at-5.03.55-PM.png\" alt=\"\" title=\"\"><\/p>\n<p>A newly created notebook can be populated with <a href=\"https:\/\/medium.com\/ibm-data-science-experience\/markdown-for-jupyter-notebooks-cheatsheet-386c05aeebed\">Markdown<\/a> text and explanations to implement the discipline of <a href=\"\/blog\/2015\/06\/02\/literate-programming-with-ipython-notebooks\/\">literate programmins<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>scons2jupyter is a simple script that converts a Madagascar-style SConstruct file to a Jupyter notebook with a Python interface. You can use it by simply running scons2jupyter &lt; SConstruct &gt; mynotebook.ipynb An example notebook is the result of running scons2jupyter in bei\/vela\/vscan. A newly created notebook can be populated with Markdown text and explanations to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[3],"tags":[],"class_list":["post-102030","post","type-post","status-publish","format-standard","hentry","category-programs"],"_links":{"self":[{"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/posts\/102030","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/comments?post=102030"}],"version-history":[{"count":4,"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/posts\/102030\/revisions"}],"predecessor-version":[{"id":102346,"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/posts\/102030\/revisions\/102346"}],"wp:attachment":[{"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/media?parent=102030"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/categories?post=102030"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/tags?post=102030"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}