{"id":185082,"date":"2023-02-23T13:00:00","date_gmt":"2023-02-23T18:00:00","guid":{"rendered":"https:\/\/ibkrcampus.com\/?p=185082"},"modified":"2023-02-23T10:35:38","modified_gmt":"2023-02-23T15:35:38","slug":"jupyter-notebook-tutorial-installation-components-and-magic-commands-part-iv","status":"publish","type":"post","link":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-iv\/","title":{"rendered":"Jupyter Notebook Tutorial: Installation, Components and Magic Commands \u2013 Part IV"},"content":{"rendered":"\n<p><em>See&nbsp;<a href=\"\/campus\/ibkr-quant-news\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-i\/\">Part I<\/a>&nbsp;for an overview of Jupyter Notebook,&nbsp;<a href=\"\/campus\/ibkr-quant-news\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-ii\/\">Part II<\/a>&nbsp;for the different components of Jupyter Notebooks, and <a href=\"\/campus\/ibkr-quant-news\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-iii\/\">Part III<\/a> for instructions on how to write down in Markdown in Jupyter Notebooks.<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-images\">Images<\/h3>\n\n\n\n<p>The format to insert an image in a markdown cell is very similar to that of hyperlinks. Only the difference is that it prefixes <code><strong><em>!<\/em><\/strong><\/code>&nbsp;before the content. First, the exclamation mark followed by the name of the image in square brackets, and finally URL in the parenthesis. This is shown below:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">![QuantInsti's Logo](https:\/\/dt99qig9iutro.cloudfront.net\/production\/images\/header-logo-green.png)<\/pre>\n\n\n\n<p>Alternatively, you can use the HTML image tag to insert an image as shown below:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">&lt;img src=\"https:\/\/dt99qig9iutro.cloudfront.net\/production\/images\/header-logo-green.png\" alt=\"QuantInsti's Logo\"><\/pre>\n\n\n\n<p>Both will produce the following result:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"700\" height=\"135\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/jupyter-quantinsti-5.jpg\" alt=\"\" class=\"wp-image-185099 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/jupyter-quantinsti-5.jpg 700w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/jupyter-quantinsti-5-300x58.jpg 300w\" data-sizes=\"(max-width: 700px) 100vw, 700px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 700px; aspect-ratio: 700\/135;\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Geometric Shapes<\/h3>\n\n\n\n<p>A UTF-8 Geometric Shape can be included in a Jupyter notebook by using its decimal reference number. Use the following format to insert any of the shapes.<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">&amp;#reference_number;<\/pre>\n\n\n\n<p>A black circle can be inserted, as shown below:<\/p>\n\n\n\n<p>\u25cf<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Programming Code<\/h3>\n\n\n\n<p>You can embed programming code within the text using triple backticks followed by programming language name and ending by triple backticks. Below is the example for Python code embedded within the text.<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">```python\ndef func(x):\n return x**2\n```<\/pre>\n\n\n\n<p>Similarly, the programming code for another language can be written. For example, below code is for Javascript.<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">```javascript\nconsole.log('Hello World!')\n```<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">LaTeX Equations<\/h3>\n\n\n\n<p>By courtesy of MathJax, you can include mathematical expressions either inline or separately in markdown cells. To type inline, equations are surrounded by&nbsp;<code>$<\/code>. To print equations separately on a new line, they are surrounded by&nbsp;<code>$$<\/code>. For example, the formula to calculate the mean value can be written as<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">$$\\mu = \\frac{1}{n}\\sum_{i=1}^{n} x_i $$<\/pre>\n\n\n\n<p>which results in the following:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"795\" height=\"136\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/quantinsti-jupyter-python-1.png\" alt=\"\" class=\"wp-image-185100 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/quantinsti-jupyter-python-1.png 795w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/quantinsti-jupyter-python-1-700x120.png 700w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/quantinsti-jupyter-python-1-300x51.png 300w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/quantinsti-jupyter-python-1-768x131.png 768w\" data-sizes=\"(max-width: 795px) 100vw, 795px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 795px; aspect-ratio: 795\/136;\" \/><\/figure>\n\n\n\n<p>Inline equations can be written as&nbsp;<code>$x_t = \\phi x_{t-1} + \\epsilon_t$<\/code>&nbsp;which results in<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"789\" height=\"66\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/quantinsti-jupyter-python-2.png\" alt=\"\" class=\"wp-image-185102 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/quantinsti-jupyter-python-2.png 789w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/quantinsti-jupyter-python-2-700x59.png 700w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/quantinsti-jupyter-python-2-300x25.png 300w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/02\/quantinsti-jupyter-python-2-768x64.png 768w\" data-sizes=\"(max-width: 789px) 100vw, 789px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 789px; aspect-ratio: 789\/66;\" \/><\/figure>\n\n\n\n<p>You can refer to&nbsp;<a href=\"https:\/\/math.meta.stackexchange.com\/questions\/5020\/mathjax-basic-tutorial-and-quick-reference\" target=\"_blank\" rel=\"noreferrer noopener\">this<\/a>&nbsp;thread which lists various LaTeX commands that can be used in markdown cells.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Tables<\/h3>\n\n\n\n<p>You can create tables in markdown cells, as shown below:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>|This|is|\n|-|-|\n|a|table|<\/code><\/pre>\n\n\n\n<p>Columns are separated by vertical bar&nbsp;<code>|<\/code>&nbsp;and rows are written in a new line. The above table is generated, as shown below:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>This<\/th><th>is<\/th><\/tr><\/thead><tbody><tr><td>a<\/td><td>table<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">What are the magic commands in Jupyter Notebook?<\/h3>\n\n\n\n<p>Jupyter notebook software comes with a bunch of built-in commands which adds interactivity while working with it. They are called magic commands in Jupyter environment. These commands are dependent on the interpreter or kernel with which you are working. To see which magic commands are available, you can run the following magic command in the code cell:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">%lsmagic<\/pre>\n\n\n\n<p>These magic commands are prefixed with the&nbsp;<code>%<\/code>&nbsp;value. Following are some of the commonly used magic commands along with their functionality:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>%autosave<\/code>&nbsp;command autosaves your notebook periodically.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\"># Save notebook every 60 seconds\n%autosave 60<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>%cd<\/code>&nbsp;changes the current working directory to the new directory given as an argument.<\/li>\n\n\n\n<li><code>%clear<\/code>&nbsp;and&nbsp;<code>%cls<\/code>&nbsp;command clear the output of the current cell.<\/li>\n\n\n\n<li><code>%env<\/code>allows you to list all environment variables as well as set the value of particular environment variables.<\/li>\n\n\n\n<li><code>%history<\/code>&nbsp;shows the history of the previously executed magic commands.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">%history<\/pre>\n\n\n\n<p><code>%ls<\/code>&nbsp;lists the content of the current directory.<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">%ls<\/pre>\n\n\n\n<p><code>%matplotlib<\/code>&nbsp;allows you to plot charts inline within a notebook.<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">%matplotlib inline<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>%notebook<\/code>&nbsp;command adds the interactivity while plotting charts.<\/li>\n\n\n\n<li><code>%pdb<\/code>&nbsp;allows you to debug the code. This magic command is the Jupyter version of Python debugger.<\/li>\n\n\n\n<li><code>%pip<\/code>&nbsp;enables you to list and install all available packages from Jupyter environment.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">%pip install pandas<\/pre>\n\n\n\n<p><code>%who<\/code>&nbsp;list all variables from the global scope.<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">stock = 'AAPL'\nprice = 222.15\n%who str<\/pre>\n\n\n\n<p><code>%load<\/code>&nbsp;inserts the code from an external script.<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">%load .\/hello_world.py<\/pre>\n\n\n\n<p><code>%run<\/code>&nbsp;allows you to run Python code.<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">%run .\/sample_notebook.ipynb<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>%time<\/code>&nbsp;displays the time taken by a cell for execution.<\/li>\n<\/ul>\n\n\n\n<p>If you are using Anaconda Python, then magic commands mentioned above should work without any issue. Otherwise, you may require to install the following packages:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>ipython-sql<\/li>\n\n\n\n<li>cython<\/li>\n<\/ul>\n\n\n\n<p><em>Stay tuned for the next installment to learn how to download and share 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>The format to insert an image in a markdown cell is very similar to that of hyperlinks. Only the difference is that it prefixes!<\/p>\n","protected":false},"author":328,"featured_media":156817,"comment_status":"closed","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[339,343,349,338,350,341,351,352,344,2197],"tags":[6922,6614,14746,14549,595],"contributors-categories":[13654],"class_list":{"0":"post-185082","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-europe","14":"category-quant-north-america","15":"category-quant-regions","16":"category-quant-south-america","17":"tag-anaconda","18":"tag-jupyter-notebook","19":"tag-magic-commands-in-jupyter-notebook","20":"tag-markdown-language","21":"tag-python","22":"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.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Jupyter Notebook Tutorial: Installation, Components and Magic Commands \u2013 Part IV<\/title>\n<meta name=\"description\" content=\"The format to insert an image in a markdown cell is very similar to that of hyperlinks. Only the difference is that it prefixes!\" \/>\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\/185082\/\" \/>\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 IV | IBKR Quant Blog\" \/>\n<meta property=\"og:description\" content=\"The format to insert an image in a markdown cell is very similar to that of hyperlinks. Only the difference is that it prefixes!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-iv\/\" \/>\n<meta property=\"og:site_name\" content=\"IBKR Campus US\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-23T18:00:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/python-blue-tech.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:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jay Parmar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\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-iv\\\/#article\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-iv\\\/\"\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 IV\",\n\t            \"datePublished\": \"2023-02-23T18:00:00+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-iv\\\/\"\n\t            },\n\t            \"wordCount\": 626,\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-iv\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2022\\\/09\\\/python-blue-tech.jpg\",\n\t            \"keywords\": [\n\t                \"Anaconda\",\n\t                \"Jupyter Notebook\",\n\t                \"magic commands in 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 Europe\",\n\t                \"Quant North America\",\n\t                \"Quant Regions\",\n\t                \"Quant South America\"\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-iv\\\/\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-iv\\\/\",\n\t            \"name\": \"Jupyter Notebook Tutorial: Installation, Components and Magic Commands \u2013 Part IV | IBKR Quant Blog\",\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-iv\\\/#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-iv\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2022\\\/09\\\/python-blue-tech.jpg\",\n\t            \"datePublished\": \"2023-02-23T18:00:00+00:00\",\n\t            \"description\": \"The format to insert an image in a markdown cell is very similar to that of hyperlinks. Only the difference is that it prefixes!\",\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-iv\\\/\"\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-iv\\\/#primaryimage\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2022\\\/09\\\/python-blue-tech.jpg\",\n\t            \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2022\\\/09\\\/python-blue-tech.jpg\",\n\t            \"width\": 1000,\n\t            \"height\": 563,\n\t            \"caption\": \"Python\"\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 IV","description":"The format to insert an image in a markdown cell is very similar to that of hyperlinks. Only the difference is that it prefixes!","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\/185082\/","og_locale":"en_US","og_type":"article","og_title":"Jupyter Notebook Tutorial: Installation, Components and Magic Commands \u2013 Part IV | IBKR Quant Blog","og_description":"The format to insert an image in a markdown cell is very similar to that of hyperlinks. Only the difference is that it prefixes!","og_url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-iv\/","og_site_name":"IBKR Campus US","article_published_time":"2023-02-23T18:00:00+00:00","og_image":[{"width":1000,"height":563,"url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/python-blue-tech.jpg","type":"image\/jpeg"}],"author":"Jay Parmar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Jay Parmar","Est. reading time":"4 minutes"},"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-iv\/#article","isPartOf":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-iv\/"},"author":{"name":"Jay Parmar","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/e77e7794714e57aa7d6e8ec9be051768"},"headline":"Jupyter Notebook Tutorial: Installation, Components and Magic Commands \u2013 Part IV","datePublished":"2023-02-23T18:00:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-iv\/"},"wordCount":626,"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-iv\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/python-blue-tech.jpg","keywords":["Anaconda","Jupyter Notebook","magic commands in Jupyter Notebook","Markdown language","Python"],"articleSection":["Data Science","Programming Languages","Python Development","Quant","Quant Asia Pacific","Quant Development","Quant Europe","Quant North America","Quant Regions","Quant South America"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-iv\/","url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-iv\/","name":"Jupyter Notebook Tutorial: Installation, Components and Magic Commands \u2013 Part IV | IBKR Quant Blog","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-iv\/#primaryimage"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-iv\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/python-blue-tech.jpg","datePublished":"2023-02-23T18:00:00+00:00","description":"The format to insert an image in a markdown cell is very similar to that of hyperlinks. Only the difference is that it prefixes!","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-iv\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/jupyter-notebook-tutorial-installation-components-and-magic-commands-part-iv\/#primaryimage","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/python-blue-tech.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/python-blue-tech.jpg","width":1000,"height":563,"caption":"Python"},{"@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\/2022\/09\/python-blue-tech.jpg","_links":{"self":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/185082","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=185082"}],"version-history":[{"count":0,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/185082\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media\/156817"}],"wp:attachment":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media?parent=185082"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/categories?post=185082"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/tags?post=185082"},{"taxonomy":"contributors-categories","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/contributors-categories?post=185082"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}