{"id":184693,"date":"2023-02-07T15:19:00","date_gmt":"2023-02-07T20:19:00","guid":{"rendered":"https:\/\/ibkrcampus.com\/traders-insight\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-ii\/"},"modified":"2023-02-13T15:16:38","modified_gmt":"2023-02-13T20:16:38","slug":"jupyter-notebook-tutorial-installation-components-and-magic-commands-part-ii","status":"publish","type":"post","link":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-ii\/","title":{"rendered":"Jupyter Notebook Tutorial: Installation, Components and Magic Commands \u2013 Part II"},"content":{"rendered":"\n<p><em>See <a href=\"https:\/\/www.tradersinsight.news\/ibkr-quant-news\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-i\/\">Part I<\/a> for an overview of Jupyter Notebook.<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-what-are-the-different-components-of-jupyter-notebooks\">What are the different components of Jupyter notebooks?<\/h3>\n\n\n\n<p>I assume that you are following the chronological order of this article. If so, then you have learned what Jupyter notebooks are, how to install it, and how to run and open it. If not, then I would recommend you to go through them to get an overall picture. Nevertheless, if you are already familiar with those parts, go on and keep learning.<\/p>\n\n\n\n<p>In this section, I will explain the various components of Jupyter software. When you start Jupyter Notebook application, and you&#8217;ll be presented with the homepage. Let&#8217;s start exploring it. Below shown is the snapshot of the homepage that you&#8217;d seen earlier, but with numbers assigned to each component to make our learning easier.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/jupyter_home_page_numbered-quantinsti.png\" alt=\"Jupyter Notebook Tutorial - QuantInsti\" class=\"wp-image-175958 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n\n\n\n<p>Here&#8217;s the description of each numbered point shown in the snapshot.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>It is the&nbsp;<em>URL<\/em>&nbsp;on which Jupyter server is running. If you are running the Jupyter on localhost, this would be the same URL shown in the console when you started Jupyter software.<\/li>\n\n\n\n<li>The&nbsp;<em>Files<\/em>&nbsp;tab lists the directories and files in the home folder, which usually is the home directory of the user logged in to the computer.<\/li>\n\n\n\n<li>The&nbsp;<em>Running<\/em>&nbsp;tab shows you a list of all open notebooks. When you start a new notebook or open an existing notebook, a kernel will get attached to it. All such running kernels will be listed under this tab.<\/li>\n\n\n\n<li>If you want to open an existing Jupyter notebook(that ends with .ipynb extension), it needs to be listed in the Files tab. If it is not listed, you need to upload it using the&nbsp;<em>Upload<\/em>&nbsp;button which will open a file browser for you to load the file.<\/li>\n\n\n\n<li><em>Quit<\/em>&nbsp;and&nbsp;<em>Logout<\/em>&nbsp;buttons allow you to logout and shutdown the server. When you quit, all the opened notebooks will be closed, and the server will get shutdown.<\/li>\n\n\n\n<li>The&nbsp;<em>New<\/em>&nbsp;button allows you to create a new notebook, text file, folder, or terminal. The snapshot shown below shows that you can create a notebook in Python, Julia, and R language. The notebook that you create will be associated with a respective kernel. When you install Jupyter environment as shown in the previous section, it is very likely that you will have only one option for the kernel, that is, Python. In order to add new languages, you can refer to&nbsp;<a>this link<\/a>.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image img-twothird\"><img decoding=\"async\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/quantinsti-python-jupyter.png\" alt=\"=\"\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\"><\/figure>\n\n\n\n<p>You can create a new notebook by clicking on the respective language name. Regardless of what language you choose, the new notebook that you create will have the same appearance. The difference would be in terms of the kernel attached to it. If I click on&nbsp;<em>Python 3<\/em>&nbsp;on the dropdown opened, a new notebook with Python kernel attached to it will be created. The empty Jupyter notebook is shown in the snapshot below.&nbsp;<em>(Obviously without numbers :p)<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/a_new_notebook-quantinsti.png\" alt=\" class=\" class=\"wp-image-175965 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n\n\n\n<p>The newly created notebook has various components which are explained below:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>The&nbsp;<em>title<\/em>&nbsp;is the name of the notebook. The title you set becomes the file name for the notebook, and it will have the extension as&nbsp;<em>.ipynb<\/em>&nbsp;which stands for&nbsp;<em>IPython NoteBook<\/em>.<\/li>\n\n\n\n<li>The&nbsp;<em>checkpoint<\/em>&nbsp;shows you the time when your notebook was saved last.<\/li>\n\n\n\n<li>The&nbsp;<em>menu bar<\/em>&nbsp;lists various menus that allow you to download the notebook(in multiple formats), open a new notebook, edit the notebook, customise the headers, manipulate cells, nudge the kernel, access help and so on.<\/li>\n\n\n\n<li>The&nbsp;<em>shortcut bar<\/em>&nbsp;lists commonly used shortcuts such as&nbsp;<em>save<\/em>&nbsp;to save the notebook,&nbsp;<em>add a cell<\/em>,&nbsp;<em>cut<\/em>,&nbsp;<em>copy<\/em>&nbsp;to manipulate cells,&nbsp;<em>up<\/em>&nbsp;and&nbsp;<em>down<\/em>&nbsp;to navigate between cells,&nbsp;<em>run<\/em>&nbsp;to execute the cell, and so on. Any extension that you add to Jupyter will have its shortcut on this bar. We will learn what extensions are in the latter part of this article.<\/li>\n\n\n\n<li>The&nbsp;<em>Kernel<\/em>&nbsp;shows you the current kernel associated with the notebook. In our case, the kernel is&nbsp;<em>Python 3<\/em>. The circle beside the kernel shows the status of the kernel. The hollow circle represents that it is ready to take input and run a cell. When a kernel is executing code or processing anything, it changes to solid.<\/li>\n\n\n\n<li>A&nbsp;<em>cell<\/em>&nbsp;is the part of a notebook where all the magic happens. Cells are explained in detail in the following section.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">What are cells in a Jupyter Notebook?<\/h3>\n\n\n\n<p>Any text or code that you write goes in the cell. Cells are the building block of any Jupyter notebook. Cells operate in two modes:&nbsp;<em>command<\/em>&nbsp;and&nbsp;<em>edit<\/em>&nbsp;mode, and they are of mainly three types:&nbsp;<em>code<\/em>,&nbsp;<em>markdown<\/em>, and&nbsp;<em>Raw NBConvert<\/em>.<\/p>\n\n\n\n<p>The&nbsp;<em>command<\/em>&nbsp;mode allows you to manipulate cells. That is, the action you perform has to do with the cell as a whole. The command mode is represented by a grey border around the cell with a blue indication, as shown in the below snapshot.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/a_cell_in_a_command_mode-quantinsti.png\" alt=\" class=\" class=\"wp-image-175970 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n\n\n\n<p>Some of the operations (along with their shortcuts) that you can perform when a cell is in the command mode are as follows:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><em>Insert<\/em>&nbsp;a new cell &#8212; Key in&nbsp;<code>A<\/code>&nbsp;to insert a new cell above, and&nbsp;<code>B<\/code>&nbsp;to insert a new cell below the current cell.\n<ul class=\"wp-block-list\">\n<li>When a new cell is inserted, it will be a code type cell, by default. We will look at various types in a while.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><em>Merge<\/em>&nbsp;existing cells &#8212;&nbsp;<code>Shift-M<\/code>&nbsp;allows to merge selected cells or to merge the current cell with the cell below the current cell.<\/li>\n\n\n\n<li><em>Copy<\/em>&nbsp;cells &#8212;&nbsp;<code>C<\/code>&nbsp;copies selected cells.<\/li>\n\n\n\n<li><em>Cut<\/em>&nbsp;cells &#8212;&nbsp;<code>X<\/code>&nbsp;cuts selected cells.<\/li>\n\n\n\n<li><em>Paste<\/em>&nbsp;cells &#8212; Use&nbsp;<code>Shift-V<\/code>&nbsp;to paste cells.<\/li>\n\n\n\n<li><em>Delete<\/em>&nbsp;existing dells &#8212; Pressing&nbsp;<code>D<\/code>,&nbsp;<code>D<\/code>&nbsp;deletes the current cell. Be careful with this shortcut.<\/li>\n\n\n\n<li><em>Change<\/em>&nbsp;the type of a cell &#8212; The shortcut&nbsp;<code>Y<\/code>&nbsp;changes the cell type to&nbsp;<em>code<\/em>,&nbsp;<code>M<\/code>&nbsp;changes the cell type to&nbsp;<em>markdown<\/em>, and&nbsp;<code>R<\/code>&nbsp;changes the cell type to&nbsp;<em>raw<\/em>.<\/li>\n\n\n\n<li><em>Convert<\/em>&nbsp;the cell to a heading &#8212; There are six heading types in a Jupyter notebook. This works with&nbsp;<em>markdown<\/em>&nbsp;cell type only. Heading 1 is the largest heading and heading 6 is the smallest heading.&nbsp;<code>1<\/code>,&nbsp;<code>2<\/code>,&nbsp;<code>3<\/code>,&nbsp;<code>4<\/code>,&nbsp;<code>5<\/code>, and&nbsp;<code>6<\/code>&nbsp;are used to change the cell type to the respective heading size.<\/li>\n\n\n\n<li><em>Find and Replace<\/em>&nbsp;in existing cells &#8212; Pressing&nbsp;<code>F<\/code>&nbsp;opens find and replace dialogue box.<\/li>\n\n\n\n<li><em>Save<\/em>&nbsp;and mark the&nbsp;<em>Checkpoint<\/em>&nbsp;of the notebook &#8212; Use&nbsp;<code>Shift-S<\/code>&nbsp;to save the notebook.<\/li>\n\n\n\n<li><em>Toggle<\/em>&nbsp;line numbers in a cell &#8212; Pressing&nbsp;<code>L<\/code>&nbsp;toggles line number in the current cell.<\/li>\n\n\n\n<li><em>Toggle<\/em>&nbsp;the output of a cell &#8212;&nbsp;<code>O<\/code>&nbsp;allows you to toggle the output of the current cell.<\/li>\n\n\n\n<li><em>Interrupt the kernel<\/em>&nbsp;&#8212; Keying&nbsp;<code>I<\/code>,&nbsp;<code>I<\/code>&nbsp;interrupts the kernel. That is, if any process is being executed by the kernel gets stopped.<\/li>\n\n\n\n<li><em>Scroll<\/em>&nbsp;the notebook &#8212;&nbsp;<code>Space<\/code>&nbsp;scrolls the notebook down,&nbsp;<code>Shift-Space<\/code>&nbsp;scrolls the notebook up.<\/li>\n\n\n\n<li><em>Enter<\/em>&nbsp;the edit mode &#8212; Pressing&nbsp;<code>return<\/code>&nbsp;key changes the mode of a cell to the edit mode.<\/li>\n<\/ul>\n\n\n\n<p>The shortcuts mentioned above work only in the&nbsp;<em>command<\/em>&nbsp;mode cells. Another mode that a Jupyter notebook cell supports is the&nbsp;<em>edit<\/em>&nbsp;mode. This mode specifically allows you to edit the content of a cell and work with it. You can enter into the edit mode of a cell by pressing the&nbsp;<code>return<\/code>&nbsp;key or by a mouse click inside a cell. The border around cell changes to Green when the cell is in the&nbsp;<em>edit<\/em>&nbsp;mode, as shown in the below snapshot.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/a_cell_in_the_edit_mode-quantinsti.png\" alt=\" class=\" class=\"wp-image-175974 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n\n\n\n<p>Once the cell is in&nbsp;<em>edit<\/em>&nbsp;mode, you can start writing code or text. The below-mentioned are some of the operations that you can perform while the cell is in the&nbsp;<em>edit<\/em>&nbsp;mode.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><em>Auto-Completion<\/em>&nbsp;of code &#8212; Use&nbsp;<code>Tab<\/code>&nbsp;key to use this facility. It works only for code type cells. In markdown cells, it will simply put tab spaces.<\/li>\n\n\n\n<li><em>Indentation<\/em>&nbsp;of code &#8212; Jupyter notebooks inherently perform indentation whenever required. However, if you want to change indentation manually, use&nbsp;<code>Ctrl-]<\/code>&nbsp;to indent the code in code type cells. In markdown cells, it will insert spaces according to the specifications of the tab key.<\/li>\n\n\n\n<li><em>Dedentation<\/em>&nbsp;of code &#8212; Anytime you want to dedent the code, use&nbsp;<code>Ctrl-[<\/code>&nbsp;to do so. In markdown cells, this shortcut works similar to&nbsp;<code>Shift-Tab<\/code>&nbsp;and dedents the content.<\/li>\n\n\n\n<li><em>Commenting<\/em>&nbsp;a code &#8212; Use&nbsp;<code>Ctrl-\/<\/code>&nbsp;to comment a code. In markdown cells, this shortcut does not have any effect.<\/li>\n\n\n\n<li><em>Execute of a cell<\/em>&nbsp;&#8212; Once you write code or text in the cell, you need to execute it to process the content written by you. There are three primary ways to do so.\n<ul class=\"wp-block-list\">\n<li><em>Run the current cell and select the next cell<\/em>&nbsp;&#8211; Use&nbsp;<code>Shift-Enter<\/code>&nbsp;to perform this action.<\/li>\n\n\n\n<li><em>Run selected cells<\/em>&nbsp;&#8211; Use&nbsp;<code>Ctrl-Enter<\/code>&nbsp;to run selected cells or the current cell.<\/li>\n\n\n\n<li><em>Run the current cell and insert a new cell<\/em>&nbsp;&#8211; Press&nbsp;<code>Alt-Enter<\/code>&nbsp;to execute the current cell and insert the new cell below the current cell.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><em>Split a cell<\/em>&nbsp;&#8212; Use the shortcut&nbsp;<code>Ctrl-Shift-Minus<\/code>&nbsp;to split the current cell into two separate cells at the cursor.<\/li>\n\n\n\n<li><em>Entering a Command Mode<\/em>&nbsp;&#8212; Use&nbsp;<code>Ctrl-M<\/code>&nbsp;or press&nbsp;<code>Esc<\/code>&nbsp;key to exit from the edit mode and enter into the command mode.<\/li>\n<\/ul>\n\n\n\n<p>By now, you have already encountered&nbsp;<em>code<\/em>&nbsp;and&nbsp;<em>markdown<\/em>&nbsp;cell types quite a few times. In case you are not aware of the two, now is the time where I will explain them in detail. I will restrict the discussion for these two types only; I won&#8217;t be covering the&nbsp;<em>Raw NBConvert<\/em>&nbsp;type in this article.<\/p>\n\n\n\n<p>Jupyter notebook cells can be multiple types. Often used types are&nbsp;<em>code<\/em>&nbsp;and&nbsp;<em>markdown<\/em>. The code type cells allow you to write live programming code. That is, you can perform any sort of programming in them. Once you run or execute a code cell, Jupyter notebook will present the output just below the cell. This is shown in the below snapshot.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/cell_output-quantinsti.png\" alt=\" class=\" class=\"wp-image-175975 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n\n\n\n<p>In contrast, whatever written in the markdown cell, will get printed in the cell itself, as shown below:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/code_and_markdown-quantinsti.png\" alt=\" class=\" class=\"wp-image-175976 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n\n\n\n<p>There are two cells in the above snapshot. The first cell numbered four, is the code cell, which allows tying in Python code as we are working with Python kernel notebook. The next cell is the markdown cell where the normal text is written.<\/p>\n\n\n\n<p>As can be seen, code cells have a number associated with them, whereas markdown cells do not have any numbering. Numbering code cells helps in two ways: First, it shows the sequence in which code executed, and second, it allows us to differentiate between the code cells and markdown cells visually. Now that you know the basics of cells and their workings, let&#8217;s see how you can use markdown.<\/p>\n\n\n\n<p><em>Stay tuned for the next installment to learn how to write down in Markdown in Jupyter Notebook<\/em>.<\/p>\n\n\n\n<p><em>Originally posted on QuantInsti Blog:<a href=\"https:\/\/blog.quantinsti.com\/jupyter-notebook-tutorial-installation-components-magic-commands\/\">&nbsp;https:\/\/blog.quantinsti.com\/jupyter-notebook-tutorial-installation-components-magic-commands\/<\/a>.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this section, I will explain the various components of Jupyter software.<\/p>\n","protected":false},"author":328,"featured_media":182059,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[339,343,349,338,350,341,344],"tags":[6922,6614,14549,595],"contributors-categories":[13654],"class_list":{"0":"post-184693","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-data-science","8":"category-programing-languages","9":"category-python-development","10":"category-ibkr-quant-news","11":"category-quant-asia-pacific","12":"category-quant-development","13":"category-quant-regions","14":"tag-anaconda","15":"tag-jupyter-notebook","16":"tag-markdown-language","17":"tag-python","18":"contributors-categories-quantinsti"},"pp_statuses_selecting_workflow":false,"pp_workflow_action":"current","pp_status_selection":"publish","acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.9 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Jupyter Notebook Tutorial: Installation, Components and Magic Commands \u2013 Part II<\/title>\n<meta name=\"description\" content=\"In this section, I will explain the various components of Jupyter software.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.interactivebrokers.com\/campus\/wp-json\/wp\/v2\/posts\/184693\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Jupyter Notebook Tutorial: Installation, Components and Magic Commands \u2013 Part II\" \/>\n<meta property=\"og:description\" content=\"In this section, I will explain the various components of Jupyter software.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-ii\/\" \/>\n<meta property=\"og:site_name\" content=\"IBKR Campus US\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-07T20:19:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-13T20:16:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/python-blue-dots-opaque.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"563\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jay Parmar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Jupyter Notebook Tutorial: Installation, Components and Magic Commands \u2013 Part II\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jay Parmar\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\n\t    \"@context\": \"https:\\\/\\\/schema.org\",\n\t    \"@graph\": [\n\t        {\n\t            \"@type\": \"NewsArticle\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-ii\\\/#article\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-ii\\\/\"\n\t            },\n\t            \"author\": {\n\t                \"name\": \"Jay Parmar\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/person\\\/e77e7794714e57aa7d6e8ec9be051768\"\n\t            },\n\t            \"headline\": \"Jupyter Notebook Tutorial: Installation, Components and Magic Commands \u2013 Part II\",\n\t            \"datePublished\": \"2023-02-07T20:19:00+00:00\",\n\t            \"dateModified\": \"2023-02-13T20:16:38+00:00\",\n\t            \"mainEntityOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-ii\\\/\"\n\t            },\n\t            \"wordCount\": 431,\n\t            \"publisher\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-ii\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2023\\\/02\\\/python-blue-dots-opaque.jpg\",\n\t            \"keywords\": [\n\t                \"Anaconda\",\n\t                \"Jupyter Notebook\",\n\t                \"Markdown language\",\n\t                \"Python\"\n\t            ],\n\t            \"articleSection\": [\n\t                \"Data Science\",\n\t                \"Programming Languages\",\n\t                \"Python Development\",\n\t                \"Quant\",\n\t                \"Quant Asia Pacific\",\n\t                \"Quant Development\",\n\t                \"Quant Regions\"\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"WebPage\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-ii\\\/\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-ii\\\/\",\n\t            \"name\": \"Jupyter Notebook Tutorial: Installation, Components and Magic Commands \u2013 Part II\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#website\"\n\t            },\n\t            \"primaryImageOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-ii\\\/#primaryimage\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-ii\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2023\\\/02\\\/python-blue-dots-opaque.jpg\",\n\t            \"datePublished\": \"2023-02-07T20:19:00+00:00\",\n\t            \"dateModified\": \"2023-02-13T20:16:38+00:00\",\n\t            \"description\": \"In this section, I will explain the various components of Jupyter software.\",\n\t            \"inLanguage\": \"en-US\",\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"ReadAction\",\n\t                    \"target\": [\n\t                        \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-ii\\\/\"\n\t                    ]\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"ImageObject\",\n\t            \"inLanguage\": \"en-US\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-ii\\\/#primaryimage\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2023\\\/02\\\/python-blue-dots-opaque.jpg\",\n\t            \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2023\\\/02\\\/python-blue-dots-opaque.jpg\",\n\t            \"width\": 1000,\n\t            \"height\": 563,\n\t            \"caption\": \"PySpark \u2013 A Beginner's Guide to Apache Spark and Big Data\"\n\t        },\n\t        {\n\t            \"@type\": \"WebSite\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#website\",\n\t            \"url\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/\",\n\t            \"name\": \"IBKR Campus US\",\n\t            \"description\": \"Financial Education from Interactive Brokers\",\n\t            \"publisher\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\"\n\t            },\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"SearchAction\",\n\t                    \"target\": {\n\t                        \"@type\": \"EntryPoint\",\n\t                        \"urlTemplate\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/?s={search_term_string}\"\n\t                    },\n\t                    \"query-input\": {\n\t                        \"@type\": \"PropertyValueSpecification\",\n\t                        \"valueRequired\": true,\n\t                        \"valueName\": \"search_term_string\"\n\t                    }\n\t                }\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"Organization\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\",\n\t            \"name\": \"Interactive Brokers\",\n\t            \"alternateName\": \"IBKR\",\n\t            \"url\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/\",\n\t            \"logo\": {\n\t                \"@type\": \"ImageObject\",\n\t                \"inLanguage\": \"en-US\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/logo\\\/image\\\/\",\n\t                \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/05\\\/ibkr-campus-logo.jpg\",\n\t                \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/05\\\/ibkr-campus-logo.jpg\",\n\t                \"width\": 669,\n\t                \"height\": 669,\n\t                \"caption\": \"Interactive Brokers\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/logo\\\/image\\\/\"\n\t            },\n\t            \"publishingPrinciples\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/about-ibkr-campus\\\/\",\n\t            \"ethicsPolicy\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/cyber-security-notice\\\/\"\n\t        },\n\t        {\n\t            \"@type\": \"Person\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/person\\\/e77e7794714e57aa7d6e8ec9be051768\",\n\t            \"name\": \"Jay Parmar\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/author\\\/jayparmar\\\/\"\n\t        }\n\t    ]\n\t}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Jupyter Notebook Tutorial: Installation, Components and Magic Commands \u2013 Part II","description":"In this section, I will explain the various components of Jupyter software.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.interactivebrokers.com\/campus\/wp-json\/wp\/v2\/posts\/184693\/","og_locale":"en_US","og_type":"article","og_title":"Jupyter Notebook Tutorial: Installation, Components and Magic Commands \u2013 Part II","og_description":"In this section, I will explain the various components of Jupyter software.","og_url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-ii\/","og_site_name":"IBKR Campus US","article_published_time":"2023-02-07T20:19:00+00:00","article_modified_time":"2023-02-13T20:16:38+00:00","og_image":[{"width":1000,"height":563,"url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/python-blue-dots-opaque.jpg","type":"image\/jpeg"}],"author":"Jay Parmar","twitter_card":"summary_large_image","twitter_title":"Jupyter Notebook Tutorial: Installation, Components and Magic Commands \u2013 Part II","twitter_misc":{"Written by":"Jay Parmar"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"NewsArticle","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-ii\/#article","isPartOf":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-ii\/"},"author":{"name":"Jay Parmar","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/e77e7794714e57aa7d6e8ec9be051768"},"headline":"Jupyter Notebook Tutorial: Installation, Components and Magic Commands \u2013 Part II","datePublished":"2023-02-07T20:19:00+00:00","dateModified":"2023-02-13T20:16:38+00:00","mainEntityOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-ii\/"},"wordCount":431,"publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-ii\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/python-blue-dots-opaque.jpg","keywords":["Anaconda","Jupyter Notebook","Markdown language","Python"],"articleSection":["Data Science","Programming Languages","Python Development","Quant","Quant Asia Pacific","Quant Development","Quant Regions"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-ii\/","url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-ii\/","name":"Jupyter Notebook Tutorial: Installation, Components and Magic Commands \u2013 Part II","isPartOf":{"@id":"https:\/\/ibkrcampus.com\/campus\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-ii\/#primaryimage"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-ii\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/python-blue-dots-opaque.jpg","datePublished":"2023-02-07T20:19:00+00:00","dateModified":"2023-02-13T20:16:38+00:00","description":"In this section, I will explain the various components of Jupyter software.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-ii\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-ii\/#primaryimage","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/python-blue-dots-opaque.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/python-blue-dots-opaque.jpg","width":1000,"height":563,"caption":"PySpark \u2013 A Beginner's Guide to Apache Spark and Big Data"},{"@type":"WebSite","@id":"https:\/\/ibkrcampus.com\/campus\/#website","url":"https:\/\/ibkrcampus.com\/campus\/","name":"IBKR Campus US","description":"Financial Education from Interactive Brokers","publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ibkrcampus.com\/campus\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/ibkrcampus.com\/campus\/#organization","name":"Interactive Brokers","alternateName":"IBKR","url":"https:\/\/ibkrcampus.com\/campus\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/logo\/image\/","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/05\/ibkr-campus-logo.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/05\/ibkr-campus-logo.jpg","width":669,"height":669,"caption":"Interactive Brokers"},"image":{"@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/logo\/image\/"},"publishingPrinciples":"https:\/\/www.interactivebrokers.com\/campus\/about-ibkr-campus\/","ethicsPolicy":"https:\/\/www.interactivebrokers.com\/campus\/cyber-security-notice\/"},{"@type":"Person","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/e77e7794714e57aa7d6e8ec9be051768","name":"Jay Parmar","url":"https:\/\/www.interactivebrokers.com\/campus\/author\/jayparmar\/"}]}},"jetpack_featured_media_url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/python-blue-dots-opaque.jpg","_links":{"self":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/184693","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/users\/328"}],"replies":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/comments?post=184693"}],"version-history":[{"count":0,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/184693\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media\/182059"}],"wp:attachment":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media?parent=184693"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/categories?post=184693"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/tags?post=184693"},{"taxonomy":"contributors-categories","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/contributors-categories?post=184693"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}