{"id":3256,"date":"2018-05-21T19:52:20","date_gmt":"2018-05-21T19:52:20","guid":{"rendered":"https:\/\/max-drake.cc\/?p=3256"},"modified":"2018-05-22T13:29:07","modified_gmt":"2018-05-22T13:29:07","slug":"python-8-jupyter-notebook","status":"publish","type":"post","link":"https:\/\/max-drake.cc\/?p=3256","title":{"rendered":"Python 8. Jupyter Notebook"},"content":{"rendered":"<div class=\"col-md-6 nb-highlight-text\">\n<p>There is an interactive tutorial <a href=\"https:\/\/hub.mybinder.org\/user\/ipython-ipython-in-depth-s2dc13x3\/notebooks\/binder\/Index.ipynb\" target=\"_blank\" rel=\"noopener\"><strong>here<\/strong><\/a> running Python. This instance is running from another website so could be slow.<\/p>\n<p>I found this video extremely good for setting up (I used the pip install method not anaconda) and how to use it.<\/p>\n<p><iframe title=\"Jupyter Notebook Tutorial: Introduction, Setup, and Walkthrough\" width=\"678\" height=\"381\" data-src=\"https:\/\/www.youtube.com\/embed\/HW29067qVWk?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" data-load-mode=\"1\"><\/iframe><\/p>\n<h2>The Jupyter Notebook<\/h2>\n<p class=\"nb-desc\">The <a href=\"https:\/\/jupyter.org\/index.html\" target=\"_blank\" rel=\"noopener\"><strong>Jupyter Notebook<\/strong><\/a> is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations and narrative text. Uses include: data cleaning and transformation, numerical simulation, statistical modeling, data visualization, machine learning, and much more.<\/p>\n<ol>\n<li>Language of choice.The Notebook has support for over 40 programming languages, including Python, R, Julia, and Scala.<\/li>\n<li>Share notebooks. Notebooks can be shared with others using email, Dropbox, GitHub and the <a href=\"http:\/\/nbviewer.jupyter.org\/\">Jupyter Notebook Viewer<\/a>.<\/li>\n<li>Interactive output. Your code can produce rich, interactive output: HTML, images, videos, LaTeX, and custom MIME types.<\/li>\n<li>Big data integration. Leverage big data tools, such as Apache Spark, from Python, R and Scala. Explore that same data with pandas, scikit-learn, ggplot2, TensorFlow.<\/li>\n<\/ol>\n<p>&nbsp;Item 4 is a bit beyond my ken at the moment but the other three items are really useful.<\/p>\n<p>I think I sort of dismissed it initially because I thought it was running over the internet so could potentially be slow based on your connection, that is why I didn&#8217;t look into it further earlier. A shame as it looks like a brilliant tool.<\/p>\n<p>After installing it runs within your browser on a localhost server on your computer, so should be pretty fast.<\/p>\n<p>The other thing I like is that you can:<\/p>\n<ol>\n<li>Write a story in <a href=\"https:\/\/www.lifehacker.com.au\/2012\/09\/ask-lh-what-is-markdown-and-why-would-i-want-to-use-it\/\" target=\"_blank\" rel=\"noopener\"><em>Markdown <\/em><\/a>to give an explanation of what you are trying to do, Markdown is a simplified version of HTML and can convert to HTML.<\/li>\n<li>it&nbsp; shows pandas data-frames as tables<\/li>\n<li>it shows graphic outputs, and even some interactive outputs.<\/li>\n<\/ol>\n<p>so great for doing an &#8220;explain page&#8221; on the web for your process.<\/p>\n<p><strong>An example<\/strong><\/p>\n<p>&nbsp;<img decoding=\"async\" class=\"wp-image-3264 aligncenter lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2018\/05\/imj01-1024x763.jpg\" alt=\"\" width=\"1470\" height=\"1095\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2018\/05\/imj01-1024x763.jpg 1024w, https:\/\/max-drake.cc\/wp-content\/uploads\/2018\/05\/imj01-300x224.jpg 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2018\/05\/imj01-768x572.jpg 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2018\/05\/imj01.jpg 1669w\" data-sizes=\"(max-width: 1470px) 100vw, 1470px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1470px; --smush-placeholder-aspect-ratio: 1470\/1095;\" \/><\/p>\n<p>I am trying to explore Python Dashboards and I am&nbsp; interested in <a href=\"https:\/\/bokehplots.com\/pages\/about-bokeh.html\" target=\"_blank\" rel=\"noopener\">BOKEH<\/a>. I wanted to test the example half way down <a href=\"https:\/\/hub.mybinder.org\/user\/bokeh-bokeh-notebooks-14pqihz9\/notebooks\/tutorial\/00%20-%20Introduction%20and%20Setup.ipynb\" target=\"_blank\" rel=\"noopener\"><strong>this page<\/strong><\/a>. Although it is in a Jupyter Notebook, I wanted to run it on my PC, so I cut the 3 blocks of code out and pasted them into a Jupyter Notebook I have running on my PC and output is <a href=\"https:\/\/max-drake.cc\/data\/Python\/Jupyter\/JupyterTest.html\" target=\"_blank\" rel=\"noopener\"><strong>on linked page here<\/strong><\/a>.<\/p>\n<p>There is an interactive Chart (Widget?) at the bottom with adjustable sliders. So although the page is saved as an HTML&nbsp; file it is still interactive. (Note, chart at bottom takes a little while to generate).<\/p>\n<h3>Zeppelin Notebook<\/h3>\n<p>I was looking at the <a href=\"https:\/\/cognitiveclass.ai\/\" target=\"_blank\" rel=\"noopener\"><strong>Data Science and Cognitive Computing Courses<\/strong><\/a> website that has free courses on Data Science and also a <a href=\"https:\/\/labs.cognitiveclass.ai\/login\" target=\"_blank\" rel=\"noopener\"><strong>free lab area<\/strong><\/a> for learning\/testing\/exploring and it had the Jupyter Notebook &amp; the Zeppelin Notebook too.<\/p>\n<p>The<strong><a href=\"https:\/\/zeppelin.apache.org\/\" target=\"_blank\" rel=\"noopener\"> Zeppelin notebook<\/a> <\/strong>runs on an apache spark local server.<\/p>\n<p><img decoding=\"async\" class=\"wp-image-3271 aligncenter lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2018\/05\/imj03-873x1024.jpg\" alt=\"\" width=\"1449\" height=\"1699\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2018\/05\/imj03-873x1024.jpg 873w, https:\/\/max-drake.cc\/wp-content\/uploads\/2018\/05\/imj03-256x300.jpg 256w, https:\/\/max-drake.cc\/wp-content\/uploads\/2018\/05\/imj03-768x901.jpg 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2018\/05\/imj03.jpg 1356w\" data-sizes=\"(max-width: 1449px) 100vw, 1449px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1449px; --smush-placeholder-aspect-ratio: 1449\/1699;\" \/><\/p>\n<p>I have not done any exploring with this yet as I want to practice a bit with the Jupyter Notebook first.<\/p>\n<p>Th also have&nbsp; Seahorse, Visual Spark, that seems to be a visual programming language like Grasshopper &amp; DynamoBIM &amp; Knime. This seems to run only in CHROME, and not in Firefox which I normally use. I may explore using this later too, although if you are doing the coding the visual coding is just another dimension to add to the fiddle factor.<\/p>\n<p><img decoding=\"async\" class=\"wp-image-3272 aligncenter lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2018\/05\/imj04-1024x667.jpg\" alt=\"\" width=\"1252\" height=\"816\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2018\/05\/imj04-1024x667.jpg 1024w, https:\/\/max-drake.cc\/wp-content\/uploads\/2018\/05\/imj04-300x195.jpg 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2018\/05\/imj04-768x500.jpg 768w\" data-sizes=\"(max-width: 1252px) 100vw, 1252px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1252px; --smush-placeholder-aspect-ratio: 1252\/816;\" \/><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>There is an interactive tutorial here running Python. This instance is running from another website so could be slow. I found this video extremely good for setting up (I used the pip install method not anaconda) and how to use it. The Jupyter Notebook The Jupyter Notebook is an open-source web application that allows you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3263,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5,34,29],"tags":[],"class_list":["post-3256","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-extraction","category-graphs","category-python","category-web"],"featured_image_src":"https:\/\/max-drake.cc\/wp-content\/uploads\/2018\/05\/imj02.jpg","featured_image_src_square":"https:\/\/max-drake.cc\/wp-content\/uploads\/2018\/05\/imj02.jpg","author_info":{"display_name":"Max Drake","author_link":"https:\/\/max-drake.cc\/?author=1"},"_links":{"self":[{"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/posts\/3256","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/max-drake.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3256"}],"version-history":[{"count":0,"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/posts\/3256\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/media\/3263"}],"wp:attachment":[{"href":"https:\/\/max-drake.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/max-drake.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3256"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/max-drake.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}