{"id":14765,"date":"2017-10-26T09:00:46","date_gmt":"2017-10-26T16:00:46","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudio\/?p=14765"},"modified":"2019-02-14T15:26:52","modified_gmt":"2019-02-14T23:26:52","slug":"run-book-run-from-physical-paper-to-executable-online-books","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/run-book-run-from-physical-paper-to-executable-online-books\/","title":{"rendered":"Run book Run! From physical paper to executable online books"},"content":{"rendered":"<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/Python-Data-Science-Handbook.jpg\"><img decoding=\"async\" width=\"375\" height=\"492\" title=\"Python Data Science Handbook\" align=\"right\" style=\"float: right\" alt=\"Python Data Science Handbook\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/Python-Data-Science-Handbook.jpg\" class=\"\" \/><\/a>Have you ever wanted to run the code samples while reading a book? Without having to first download the sample code, its runtime, and configure your environment so that everything is setup the way you need it? What if you could be reading a book, and immediately execute (and change!) the code without needing to install anything on your computer? What if you could do this without needing any software other than a modern web browser?<\/p>\n<p><a href=\"https:\/\/notebooks.azure.com\">Azure Notebooks<\/a> makes it easy to read a book online and run and change the code samples all from just a modern web browser. Today, we\u2019re delighted to announce that <a href=\"http:\/\/www.oreilly.com\/pub\/au\/6198\">Jake VanderPlas\u2019<\/a> <a href=\"https:\/\/notebooks.azure.com\/jakevdp\/libraries\/PythonDataScienceHandbook\">Python Data Science Handbook<\/a> is now available for free on Azure notebooks.<\/p>\n<p>The book is <a href=\"http:\/\/shop.oreilly.com\/product\/0636920034919.do\">published by O\u2019Reilly<\/a> as well as in Jupyter notebook format. We are hosting the complete book on Azure Notebooks. You can learn the fundamentals of Data Science by either purchasing the book, or by <a href=\"https:\/\/notebooks.azure.com\/jakevdp\/libraries\/PythonDataScienceHandbook\">hopping over to Azure<\/a> and cloning your own copy and \u201crunning\u201d it.<\/p>\n<p>I personally like the feel of an actual book, and now with the ability to run the book without preparing an environment or installing software; the whole experience is a lot more enjoyable.<\/p>\n<p>Note that the Jupyter version of the book is <i>not<\/i> just the code, but the entire prose as well.<\/p>\n<h2>What\u2019s Azure Notebooks?<\/h2>\n<p><a href=\"https:\/\/notebooks.azure.com\/\">Azure Notebooks<\/a> is free service for hosting and running Jupyter notebooks. Let\u2019s take a look at Jupyter itself first.<\/p>\n<p><a href=\"\/Users\/smortaz\/Documents\/devdiv\/jakevdp%20python%20hadbook\/jupyter.org\">Jupyter<\/a> is an open source project started by Professors Fernando Perez and Brian Granger that provides a rich, browser-based notebook for general data analysis and exploration. Jupyter notebooks are comprised of markdown, executable code, interactive plots and much more.<\/p>\n<p>Imagine your typical scientific paper in static PDF format, except now the code is executable, plots are interactive, and notebooks can be shared easily for reproducibility \u2013 that\u2019s what Jupyter notebooks enable.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/Jupyter.png\"><img decoding=\"async\" title=\"Jupyter\" alt=\"Jupyter\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/Jupyter.png\" width=\"700\" height=\"496\" class=\"\" \/><\/a><\/p>\n<p>Azure Notebooks provides a playground to create, run, and share Jupyter notebooks for free. Python 2, Python 3, R and F# are currently supported. Beyond languages, you get their supporting distros, such as <a href=\"https:\/\/docs.anaconda.com\/anaconda\/packages\/pkg-docs\">Anaconda<\/a> which provides access to 500+ pkgs for just about any domain.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/Interactive-coding-in-your-bowser.png\"><img decoding=\"async\" title=\"Interactive coding in your bowser\" alt=\"Interactive coding in your bowser\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/Interactive-coding-in-your-bowser.png\" width=\"701\" height=\"590\" class=\"\" \/><\/a><\/p>\n<h2>Typical scenario for using Azure Notebooks<\/h2>\n<p>This O\u2019Reilly title is our first foray into \u201cExecutable\u201d books. We hope that it becomes a trend and a convenient (and fun!) way for people to explore books. There are near-infinite possibilities for how you can use Azure Notebooks:<\/p>\n<ul>\n<li>Learn a programming language (check out the samples on our <a href=\"https:\/\/notebooks.azure.com\/\">homepage<\/a>)<\/li>\n<li>University courses (checkout out <a href=\"http:\/\/notebooks.azure.com\/richie\">this sample<\/a> from Georgia Tech)<\/li>\n<li>Give a webinar\/seminar\/talk to 500+ people (w\/o any software installation headaches)<\/li>\n<li>Explore Azure (check out the <a href=\"https:\/\/notebooks.azure.com\/Microsoft\/libraries\/AzureCosmosDB\/html\/Cosmos%20DB%20and%20its%20Python%20SDK.ipynb\">CosmosDB sample<\/a> running against a live database)<\/li>\n<\/ul>\n<h2>Python Data Science Handbook contents<\/h2>\n<p>Beyond Data Science, Jake\u2019s book is packed with excellent introductions to Python and Jupyter itself. All the Jupyter material applies to Azure Notebooks as well<\/p>\n<ul>\n<li>Chapter 1: IPython: Beyond Normal Python<\/li>\n<li>Chapter 2: Introduction to NumPy<\/li>\n<li>Chapter 3: Data Manipulation with Pandas<\/li>\n<li>Chapter 4: Visualization with Matplotlib<\/li>\n<li>Chapter 5: Machine Learning<\/li>\n<\/ul>\n<p>While on Azure notebooks, you can view an HTML preview of the book without logging in. If you want to run\/edit the book, you need to sign in and &#8220;clone\u201d the book, which gives you your own private copy to execute and edit.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/Python-Data-Science-Handbook-on-Azure-Notebooks.png\"><img decoding=\"async\" title=\"Python Data Science Handbook on Azure Notebooks\" alt=\"Python Data Science Handbook on Azure Notebooks\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/Python-Data-Science-Handbook-on-Azure-Notebooks.png\" width=\"1226\" height=\"971\" class=\"\" \/><\/a><\/p>\n<h2>Summary<\/h2>\n<p>Thanks to Jake and O\u2019Reilly, we\u2019re at an exciting juncture for learning and exploration using executable books. We\u2019re delighted to partner with O\u2019Reilly on this journey and hope to provide access to other books in the future.<\/p>\n<p>Links:<\/p>\n<ul>\n<li>Azure Notebooks: <a href=\"https:\/\/notebooks.azure.com\/jakevdp\/libraries\/PythonDataScienceHandbook\">https:\/\/notebooks.azure.com\/jakevdp\/libraries\/PythonDataScienceHandbook<\/a><\/li>\n<li>O\u2019Reilly: <a href=\"http:\/\/shop.oreilly.com\/product\/0636920034919.do\">http:\/\/shop.oreilly.com\/product\/0636920034919.do<\/a><\/li>\n<li>Amazon: <a href=\"http:\/\/a.co\/a1YJ4sW\">http:\/\/a.co\/a1YJ4sW<\/a><\/li>\n<li>Github: <a href=\"https:\/\/github.com\/jakevdp\/PythonDataScienceHandbook\">https:\/\/github.com\/jakevdp\/PythonDataScienceHandbook<\/a><\/li>\n<\/ul>\n<table cellspacing=\"0\" cellpadding=\"2\" width=\"600\" border=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"150\"><img decoding=\"async\" width=\"150\" height=\"410\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/Jake-VanderPlas.jpg\" \/><\/td>\n<td valign=\"top\" width=\"450\"><strong>Jake VanderPlas<\/strong>, Data Science fellow at the UW&#8217;s eScience Institute<\/p>\n<p>Jake VanderPlas is a data science fellow at the University of Washington&#8217;s eScience Institute, where his work focuses on data-intensive physical science research in an interdisciplinary setting. In the Python world, Jake is the author of the Python Data Science Handbook, and is active in maintaining and\/or contributing to several well-known Python scientific computing packages, including Scikit-learn, Scipy, Matplotlib, Astropy, Altair, and others. He occasionally blogs on python-related topics at <a href=\"http:\/\/jakevdp.github.io\/\">http:\/\/jakevdp.github.io\/<\/a>.<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"150\"><img decoding=\"async\" width=\"150\" height=\"410\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/Shahrokh-Mortazavi.png\" \/><\/td>\n<td valign=\"top\" width=\"450\"><strong>Shahrokh Mortazavi<\/strong>, Partner Dir. of Engineering, Visual Studio<\/p>\n<p>Shahrokh Mortazavi runs the Data Science Developer Tools teams at Microsoft, focused on Python, R, and Jupyter Notebooks. Previously, he was in the High Performance Computing group at Microsoft. He worked on the Phoenix Compiler tool chain (code gen, analysis, JIT) at Microsoft Research and, prior to that, over a 10 year period led Sun Microsystems\u2019 Code Generation &amp; Optimization compiler backend teams.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever wanted to run the code samples while reading a book? Without having to first download the sample code, its runtime, and configure your environment so that everything is setup the way you need it? What if you could be reading a book, and immediately execute (and change!) the code without needing to [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":255385,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1085,1030,561,155],"tags":[237,242,547,137,1054,172,585,156,157],"class_list":["post-14765","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud","category-data","category-open-source","category-visual-studio","tag-net","tag-azure","tag-f","tag-html","tag-ml","tag-python","tag-r","tag-visual-studio-2017","tag-webinar"],"acf":[],"blog_post_summary":"<p>Have you ever wanted to run the code samples while reading a book? Without having to first download the sample code, its runtime, and configure your environment so that everything is setup the way you need it? What if you could be reading a book, and immediately execute (and change!) the code without needing to [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/14765","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=14765"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/14765\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/255385"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=14765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=14765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=14765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}