{"id":4604,"date":"2025-01-06T21:53:28","date_gmt":"2025-01-06T21:53:28","guid":{"rendered":"https:\/\/www.qworqs.com\/blog\/?p=4604"},"modified":"2025-01-15T00:02:18","modified_gmt":"2025-01-15T00:02:18","slug":"jupyter-notebooks","status":"publish","type":"post","link":"https:\/\/www.voodoo.business\/blog\/2025\/01\/06\/jupyter-notebooks\/","title":{"rendered":"Jupyter Notebooks"},"content":{"rendered":"\n<p>Launch<\/p>\n\n\n\n<p>Within the context of our AI tutorial, start by activating your conda environment (Or venv)<\/p>\n\n\n\n<p>Once active, run the following command to launch Jupyter<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">jupyter lab<\/pre>\n\n\n\n<p>Jupyter Notebook = The original three languages that were supported were <strong>Ju<\/strong>lia, <strong>Pyt<\/strong>hon and <strong>R<\/strong>. Sure there is a missing E in the words, but i guess the name is 90% cool. The logo pays homage to Galileo&#8217;s discovery of the moons of Jupiter, So I am not sure whether the name can be called a pun since the one of them is a shortening of three words and not a name, and a name with a misspelled letter.<\/p>\n\n\n\n<p>Enough about the name and logo, let us get into what a Jupyter Notebook is<\/p>\n\n\n\n<p>Technically, it is a JSON file with a ipynb extension, in reality, it is a way to create a web document &#8220;With live code&#8221;, equations, among other things<\/p>\n\n\n\n<p>the types of cells in a notebook are<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Code Cells<\/strong>: Execute code and display the output.<\/li>\n\n\n\n<li><strong>Markdown Cells<\/strong>: Write formatted text using Markdown.<\/li>\n\n\n\n<li><strong>Raw NBConvert Cells<\/strong>: Include content that is not evaluated by the notebook kernel<sup><a href=\"https:\/\/www.bing.com\/ck\/a?!&amp;&amp;p=f9149fb86bb4a044c2c1c7a1cb9b32cb515369d035903c697601f07a510afa94JmltdHM9MTczNjEyMTYwMA&amp;ptn=3&amp;ver=2&amp;hsh=4&amp;fclid=2f6b5113-e765-617f-07aa-4539e61b60ae&amp;u=a1aHR0cHM6Ly93d3cuZ2Vla3Nmb3JnZWVrcy5vcmcvanVweXRlci1ub3RlYm9vay8&amp;ntb=1\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a><\/sup><\/li>\n<\/ul>\n\n\n\n<p>So, the markup inside that JSON file is not specific to AI per say, it is used in many science fields, but as you work your way through this blog, you will see how important it is for what we are trying to achieve ! important in the sense that it makes development simpler, it is not a thing you will use in your final product<\/p>\n\n\n\n<p>In any case, to start Jupyter Notebook. activate your Conda environment, then run the following command from the terminal where the current directory is your project directory !<\/p>\n\n\n\n<p><code>jupyter lab<\/code><\/p>\n\n\n\n<p>Then, assuming you are working on a project that your downloaded from github for example, you can open the ipynb files found in there by clicking on them form the menu on the left !<\/p>\n\n\n\n<p>Code cells get executed by a background python thread (Kernel) in the background, step by step when you go to that cell and click <strong>shift+enter<\/strong><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Launch Within the context of our AI tutorial, start by activating your conda environment (Or venv) Once active, run the following command to launch Jupyter jupyter lab Jupyter Notebook = The original three languages that were supported were Julia, Python and R. Sure there is a missing E in the words, but i guess the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[176],"tags":[],"class_list":["post-4604","post","type-post","status-publish","format-standard","hentry","category-ai"],"_links":{"self":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/4604","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/comments?post=4604"}],"version-history":[{"count":9,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/4604\/revisions"}],"predecessor-version":[{"id":4726,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/4604\/revisions\/4726"}],"wp:attachment":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/media?parent=4604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/categories?post=4604"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/tags?post=4604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}