{"id":576,"date":"2017-05-03T18:57:29","date_gmt":"2017-05-03T16:57:29","guid":{"rendered":"https:\/\/eaa-online.org\/arc\/blog\/blog\/getting-started-jupyter-notebook\/"},"modified":"2022-10-17T15:23:20","modified_gmt":"2022-10-17T13:23:20","slug":"getting-started-jupyter-notebook","status":"publish","type":"post","link":"https:\/\/eaa-online.org\/arc\/blog\/2017\/05\/03\/getting-started-jupyter-notebook\/","title":{"rendered":"Getting started with the Jupyter Notebook"},"content":{"rendered":"<div class=\"text\">\n<p>During the last EAA meeting (2016, Maastricht) I was asked to give a short talk during the PhD Forum on the topic of using a tool called the Jupyter Notebook to increase the replicability and transparancy of our research:<\/p>\n<p>The slides are available here:<br \/>\n<a href=\"https:\/\/goo.gl\/kjcwfv\" target=\"_blank\" rel=\"noopener\">https:\/\/goo.gl\/kjcwfv<\/a><\/p>\n<p>&nbsp;<\/p>\n<p><u>Understand the Jupyter Notebook<\/u><\/p>\n<p>There are three components to project Jupyter.<\/p>\n<ol>\n<li>The Jupyter Notebook which is accessed and used through your browser<\/li>\n<li>The Jupyter Server that is run on a computer or server<\/li>\n<li>The different kernels that perform the actual execution of code<\/li>\n<\/ol>\n<p>There are several things to note:<\/p>\n<ul>\n<li>You can run the Jupyter Server on your own computer and connect to it locally in your browser (you can do this even without internet). However, it is also possible to run the Jupyter Server on a different computer, for example a high performance computation server in the cloud, and connect to it over the internet. For the Jupyter Notebook itself you only need a modern web-browser like Chrome or Firefox.<\/li>\n<li>The Jupyter Server requires the Python language to work and the Python Kernel is always included by default. Other kernels, such as the R kernel, need to be added manually after the installation.<\/li>\n<\/ul>\n<p><u>Installing Jupyter<\/u><\/p>\n<p>For new users I highly recommend to install a Python distribution like [Anaconda](<a href=\"https:\/\/www.continuum.io\/downloads\" target=\"_blank\" rel=\"noopener\">https:\/\/www.continuum.io\/downloads<\/a>). This will automatically install Python, the Jupyter Notebook, and other commonly used packages for scientific computing and data science. You can choose between Python 2.7 and Python 3.5, I personally would recommend going for Python 3.5.<\/p>\n<p>If you want to know more about Python 3 vs Python 2 you can check out my other blog post on this topic:<br \/>\n<a href=\"http:\/\/eaa-online.org\/arc\/showDocument.aspx?documentId=324\">Python 2 vs. Python 3 | My view<\/a><\/p>\n<p><em>Notes on the installation:<\/em><\/p>\n<ul>\n<li>The default installation directory (in the user directory) is in most cases fine.<\/li>\n<li>Click <em>yes<\/em> if asked to add the path to your environment (this is desirable in most cases).<\/li>\n<\/ul>\n<p>After installing the Anaconda distribution you have everything ready to start using the Jupyter Notebook with the Python programming language.<\/p>\n<p><u>Adding additional kernels<\/u><\/p>\n<p>There are kernels available for a large amount of programs and programming languages. The installation instructions are different for each kernel but is usually well explained in the corresponding repository.<\/p>\n<p>A selection of kernels:<\/p>\n<ul>\n<li><strong>Stata:<\/strong> <a href=\"https:\/\/github.com\/TiesdeKok\/ipystata\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/TiesdeKok\/ipystata<\/a><\/li>\n<li><strong>SAS:<\/strong> <a href=\"https:\/\/github.com\/sassoftware\/sas_kernel\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/sassoftware\/sas_kernel<\/a><\/li>\n<li><strong>R (rpy2):<\/strong> <a href=\"http:\/\/rpy2.bitbucket.org\/\" target=\"_blank\" rel=\"noopener\">http:\/\/rpy2.bitbucket.org\/<\/a> or <a href=\"http:\/\/irkernel.github.io\/\" target=\"_blank\" rel=\"noopener\">http:\/\/irkernel.github.io\/<\/a><\/li>\n<li><strong>MATLAB: <\/strong><a href=\"https:\/\/github.com\/calysto\/matlab_kernel\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/calysto\/matlab_kernel<\/a><\/li>\n<li><strong>Julia:<\/strong> <a href=\"https:\/\/github.com\/JuliaLang\/IJulia.jl\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/JuliaLang\/IJulia.jl<\/a><\/li>\n<\/ul>\n<p>For more kernels use Google or check this list:<br \/>\n<a href=\"https:\/\/github.com\/ipython\/ipython\/wiki\/IPython-kernels-for-other-languages\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/ipython\/ipython\/wiki\/IPython-kernels-for-other-languages<\/a><\/p>\n<p><u>Starting a Jupyter Server<\/u><\/p>\n<p>You can only connect to a live Jupyter Notebook if a corresponding Jupyter Server is running. There are multiple ways to start a Jupyter Server but I will highlight two:<\/p>\n<p><em>Start from the command line:<\/em><\/p>\n<ol>\n<li>Open your command prompt (if you are on Windows I recommend using the <em>Anaconda Command Prompt<\/em>)<\/li>\n<li><em>cd<\/em> to the desired starting directory<br \/>\ne.g. <em>cd &#8220;C:\\Files\\Work\\Project_1&#8221;<\/em><\/li>\n<li>Start the Jupyter Notebook server by typing: <em>jupyter notebook<\/em><\/li>\n<\/ol>\n<p>This should automatically open up the corresponding Jupyter Notebook in the browser.<br \/>\nYou can also manually go to the Jupyter Notebook by going to <em>localhost:8888<\/em> with your browser.<\/p>\n<p><u>Closing down the Jupyter Server<\/u><\/p>\n<p>If you want to close down the Jupyter Server you open up the command prompt window that runs the server and you press <em>CTRL + C<\/em> twice. Make sure that you have saved any open Jupyter Notebooks!<\/p>\n<p><u>Run into problems?<\/u><\/p>\n<p>Feel free to comment below or ask a question on the forum using the tag &#8220;Jupyter Notebook&#8221; and I will try to help!<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>During the last EAA meeting (2016, Maastricht) I was asked to give a short talk during the PhD Forum on the topic of using a tool called the Jupyter Notebook to increase the replicability and transparancy of our research: The slides are available here: https:\/\/goo.gl\/kjcwfv &nbsp; Understand the Jupyter Notebook There are three components to [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":577,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0},"categories":[125],"tags":[4],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.12 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Getting started with the Jupyter Notebook - ARC<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Getting started with the Jupyter Notebook - ARC\" \/>\n<meta property=\"og:description\" content=\"During the last EAA meeting (2016, Maastricht) I was asked to give a short talk during the PhD Forum on the topic of using a tool called the Jupyter Notebook to increase the replicability and transparancy of our research: The slides are available here: https:\/\/goo.gl\/kjcwfv &nbsp; Understand the Jupyter Notebook There are three components to [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/eaa-online.org\/arc\/blog\/2017\/05\/03\/getting-started-jupyter-notebook\/\" \/>\n<meta property=\"og:site_name\" content=\"ARC\" \/>\n<meta property=\"article:published_time\" content=\"2017-05-03T16:57:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-17T13:23:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/eaa-online.org\/app\/uploads\/sites\/3\/2017\/10\/first_slide.png\" \/>\n\t<meta property=\"og:image:width\" content=\"640\" \/>\n\t<meta property=\"og:image:height\" content=\"360\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ties de Kok\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ties de Kok\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/eaa-online.org\/arc\/blog\/2017\/05\/03\/getting-started-jupyter-notebook\/\",\"url\":\"https:\/\/eaa-online.org\/arc\/blog\/2017\/05\/03\/getting-started-jupyter-notebook\/\",\"name\":\"Getting started with the Jupyter Notebook - ARC\",\"isPartOf\":{\"@id\":\"https:\/\/eaa-online.org\/arc\/#website\"},\"datePublished\":\"2017-05-03T16:57:29+00:00\",\"dateModified\":\"2022-10-17T13:23:20+00:00\",\"author\":{\"@id\":\"https:\/\/eaa-online.org\/arc\/#\/schema\/person\/22bbbc46473ac498a1a1015c02482474\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/eaa-online.org\/arc\/blog\/2017\/05\/03\/getting-started-jupyter-notebook\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/eaa-online.org\/arc\/#website\",\"url\":\"https:\/\/eaa-online.org\/arc\/\",\"name\":\"ARC\",\"description\":\"Advanced Resources Center\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/eaa-online.org\/arc\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/eaa-online.org\/arc\/#\/schema\/person\/22bbbc46473ac498a1a1015c02482474\",\"name\":\"Ties de Kok\",\"sameAs\":[\"https:\/\/www.tiesdekok.com\"],\"url\":\"https:\/\/eaa-online.org\/arc\/blog\/members\/10\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Getting started with the Jupyter Notebook - ARC","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"Getting started with the Jupyter Notebook - ARC","og_description":"During the last EAA meeting (2016, Maastricht) I was asked to give a short talk during the PhD Forum on the topic of using a tool called the Jupyter Notebook to increase the replicability and transparancy of our research: The slides are available here: https:\/\/goo.gl\/kjcwfv &nbsp; Understand the Jupyter Notebook There are three components to [&hellip;]","og_url":"https:\/\/eaa-online.org\/arc\/blog\/2017\/05\/03\/getting-started-jupyter-notebook\/","og_site_name":"ARC","article_published_time":"2017-05-03T16:57:29+00:00","article_modified_time":"2022-10-17T13:23:20+00:00","og_image":[{"width":640,"height":360,"url":"https:\/\/eaa-online.org\/app\/uploads\/sites\/3\/2017\/10\/first_slide.png","type":"image\/png"}],"author":"Ties de Kok","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Ties de Kok","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/eaa-online.org\/arc\/blog\/2017\/05\/03\/getting-started-jupyter-notebook\/","url":"https:\/\/eaa-online.org\/arc\/blog\/2017\/05\/03\/getting-started-jupyter-notebook\/","name":"Getting started with the Jupyter Notebook - ARC","isPartOf":{"@id":"https:\/\/eaa-online.org\/arc\/#website"},"datePublished":"2017-05-03T16:57:29+00:00","dateModified":"2022-10-17T13:23:20+00:00","author":{"@id":"https:\/\/eaa-online.org\/arc\/#\/schema\/person\/22bbbc46473ac498a1a1015c02482474"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/eaa-online.org\/arc\/blog\/2017\/05\/03\/getting-started-jupyter-notebook\/"]}]},{"@type":"WebSite","@id":"https:\/\/eaa-online.org\/arc\/#website","url":"https:\/\/eaa-online.org\/arc\/","name":"ARC","description":"Advanced Resources Center","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/eaa-online.org\/arc\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/eaa-online.org\/arc\/#\/schema\/person\/22bbbc46473ac498a1a1015c02482474","name":"Ties de Kok","sameAs":["https:\/\/www.tiesdekok.com"],"url":"https:\/\/eaa-online.org\/arc\/blog\/members\/10\/"}]}},"jetpack_featured_media_url":"https:\/\/eaa-online.org\/app\/uploads\/sites\/3\/2017\/10\/first_slide.png","_links":{"self":[{"href":"https:\/\/eaa-online.org\/arc\/wp-json\/wp\/v2\/posts\/576"}],"collection":[{"href":"https:\/\/eaa-online.org\/arc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eaa-online.org\/arc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eaa-online.org\/arc\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/eaa-online.org\/arc\/wp-json\/wp\/v2\/comments?post=576"}],"version-history":[{"count":1,"href":"https:\/\/eaa-online.org\/arc\/wp-json\/wp\/v2\/posts\/576\/revisions"}],"predecessor-version":[{"id":3967,"href":"https:\/\/eaa-online.org\/arc\/wp-json\/wp\/v2\/posts\/576\/revisions\/3967"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/eaa-online.org\/arc\/wp-json\/wp\/v2\/media\/577"}],"wp:attachment":[{"href":"https:\/\/eaa-online.org\/arc\/wp-json\/wp\/v2\/media?parent=576"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eaa-online.org\/arc\/wp-json\/wp\/v2\/categories?post=576"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eaa-online.org\/arc\/wp-json\/wp\/v2\/tags?post=576"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}