{"id":115,"date":"2019-07-19T01:23:30","date_gmt":"2019-07-19T05:23:30","guid":{"rendered":"https:\/\/gumu.kr\/en\/?p=115"},"modified":"2019-10-24T22:01:53","modified_gmt":"2019-10-25T02:01:53","slug":"how-to-use-jupyter-lab-with-docker","status":"publish","type":"post","link":"https:\/\/gumu.kr\/en\/115\/how-to-use-jupyter-lab-with-docker\/","title":{"rendered":"How to use Jupyter Lab with docker"},"content":{"rendered":"\n<p>This posting is applicable to the Linux environment of the Synology NAS, but it is also available to most people who use the dockers.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1. <\/strong>Installation<\/h3>\n\n\n\n<p>Based on the Synology NAS, search the docker registry as Jupiter.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/gumu.kr\/wp-content\/uploads\/2019\/07\/image-52-1024x553.png\" alt=\"Docker - Registry - search for jupiter\" class=\"wp-image-315\"\/><figcaption>Docker &#8211; Registry &#8211; search for jupiter<\/figcaption><\/figure>\n\n\n\n<p>Double-click on the <strong>jupiter \/datascience-notbook<\/strong> at the top to download.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/gumu.kr\/wp-content\/uploads\/2019\/07\/image-53-1024x552.png\" alt=\" Image - jupiter double click - installation \" class=\"wp-image-316\"\/><figcaption>Image &#8211; jupiter double click &#8211; installation<\/figcaption><\/figure>\n\n\n\n<p>On the Images tab, double-click the downloaded image to start the installation. Installation details are as follows.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/gumu.kr\/wp-content\/uploads\/2019\/07\/image-54-1024x732.png\" alt=\"\ucee8\ud14c\uc774\ub108 \uc774\ub984 \uc124\uc815\" class=\"wp-image-317\"\/><figcaption>Set container name<\/figcaption><\/figure>\n\n\n\n<p>Set the container name as desired and press <strong>&#8220;Advanced Settings&#8221;. <\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/gumu.kr\/en\/wp-content\/uploads\/2019\/07\/image-63.png\" alt=\"Advanced setting\" class=\"wp-image-330\"\/><figcaption>Advanced settings<\/figcaption><\/figure>\n\n\n\n<p><strong>Advanced settings tab:<\/strong> Auto restart enable check<br><strong>Volume:<\/strong> Set the desired shared folder and mount path: <strong>\/home\/jovyan\/work\/<\/strong><br><strong>Port settings:<\/strong> change<strong> local port <\/strong>to <strong>8888<\/strong><br><strong>Environment:<\/strong> After adding the <strong>JUPYTER_ENABLE_LAB<\/strong> variable, the value is <strong>yes <\/strong><\/p>\n\n\n\n<p>Most of them are the same as installing a Jupiter notebook. In order to use a Jupiter Lab, you must add the variables listed above to the variables.<\/p>\n\n\n\n<p><strong>NOTE: <\/strong>If the &#8220;work&#8221; folder is not visible on the Jupiter lab or Jupiter Notebook when the volume is mounted, it is likely that it is not a docker problem but a shared folder permission issue. In Control Panel &#8211; Groups &#8211; Settings, give Read\/Write permissions to mounted folders to user groups to resolves this problem.<\/p>\n\n\n\n<p>Let&#8217;s make sure that the <strong>8888 port<\/strong> is port-forwarded on the router.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2. Initiate<\/strong><\/h3>\n\n\n\n<p>Run the jupyter container, and then run it in the browser address<strong><br>http:\/\/[IP or DNS]:8888<\/strong><\/p>\n\n\n\n<p><strong>NOTE: <\/strong>If a docker is installed remotely like a NAS, you should write down the IP address of the remote site.<\/p>\n\n\n\n<p>If the NAS has an IP of 192.168.0.2, the address will be http:\/\/192.168.0.2:8888<\/p>\n\n\n\n<p>When you connect from the outside, you should use DDNS. If your NAS&#8217;s ddns is <strong>main.synology.me<\/strong>, you can connect to <strong>http:\/\/main.synology.me:8888 <\/strong><\/p>\n\n\n\n<p>Once connected, you will see the following window:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/gumu.kr\/wp-content\/uploads\/2019\/07\/image-58.png\" alt=\"Tokens input and password settings\" class=\"wp-image-321\"\/><figcaption>Tokens input and password settings<\/figcaption><\/figure><\/div>\n\n\n\n<p>You can access with token only, but setting a password is somehow easy to use. Token can be found below.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/gumu.kr\/wp-content\/uploads\/2019\/07\/image-59-1024x421.png\" alt=\"Docker - Container - Double-click installed jupyter  - Strings after token=\" class=\"wp-image-322\"\/><figcaption>Docker &#8211; Container &#8211; Double-click installed jupyter &#8211; Strings after token=<\/figcaption><\/figure>\n\n\n\n<p>Dockers &#8211; Containers &#8211; double-click Installed jupiter and check the log. If you look closely at the log, you can see the text &#8220;<strong>token=<\/strong>&#8221; followed by the string &#8220;token&#8221; for connecting to the jupiter.<\/p>\n\n\n\n<p>We&#8217;re ready to use! You can see Jupyter Lab after you set the new password.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/gumu.kr\/en\/wp-content\/uploads\/2019\/07\/image-61-1024x517.png\" alt=\" Jupiter Lab address and Jupiter Notebook address\" class=\"wp-image-327\"\/><figcaption>Jupiter Lab address and Jupiter Notebook address<\/figcaption><\/figure>\n\n\n\n<p>If you don&#8217;t use the Jupiter Lab and want to use the previous Jupiter notbook, you can delete the lab behind the address bar and enter the tree.<\/p>\n\n\n\n<p><strong>NOTE: <\/strong>There is no &#8220;logout&#8221; button yet in Jupiter Lab. If you only want to log out of the system, not shut down, you have to go to the Jupiter Notebook and press the Logout button.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This posting is applicable to the Linux environment of the Synology NAS, but it is also available to most people who use the dockers. 1. Installation Based on the Synology NAS, search the docker registry as Jupiter. Double-click on the jupiter \/datascience-notbook at the top to download. On the Images [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":135,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[59,62,58,66,65,10,63,12,64],"class_list":["post-115","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-it","tag-docker","tag-install","tag-jupyter-lab","tag-jupyter-lab-enable","tag-jupyter-notebook","tag-nasl","tag-start","tag-synologyl","tag-token"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to use Jupyter Lab with docker - Gumu&#039;s treasure box<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gumu.kr\/en\/115\/how-to-use-jupyter-lab-with-docker\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to use Jupyter Lab with docker - Gumu&#039;s treasure box\" \/>\n<meta property=\"og:description\" content=\"This posting is applicable to the Linux environment of the Synology NAS, but it is also available to most people who use the dockers. 1. Installation Based on the Synology NAS, search the docker registry as Jupiter. Double-click on the jupiter \/datascience-notbook at the top to download. On the Images [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gumu.kr\/en\/115\/how-to-use-jupyter-lab-with-docker\/\" \/>\n<meta property=\"og:site_name\" content=\"Gumu&#039;s treasure box\" \/>\n<meta property=\"article:published_time\" content=\"2019-07-19T05:23:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-10-25T02:01:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/gumu.kr\/en\/wp-content\/uploads\/sites\/2\/2019\/10\/image-60.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1141\" \/>\n\t<meta property=\"og:image:height\" content=\"576\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Gugu\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Gugu\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/gumu.kr\/en\/115\/how-to-use-jupyter-lab-with-docker\/\",\"url\":\"https:\/\/gumu.kr\/en\/115\/how-to-use-jupyter-lab-with-docker\/\",\"name\":\"How to use Jupyter Lab with docker - Gumu&#039;s treasure box\",\"isPartOf\":{\"@id\":\"https:\/\/gumu.kr\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/gumu.kr\/en\/115\/how-to-use-jupyter-lab-with-docker\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/gumu.kr\/en\/115\/how-to-use-jupyter-lab-with-docker\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/gumu.kr\/en\/wp-content\/uploads\/sites\/2\/2019\/10\/image-60.png\",\"datePublished\":\"2019-07-19T05:23:30+00:00\",\"dateModified\":\"2019-10-25T02:01:53+00:00\",\"author\":{\"@id\":\"https:\/\/gumu.kr\/en\/#\/schema\/person\/0fe920f3ca791704461d829aae2a3f31\"},\"breadcrumb\":{\"@id\":\"https:\/\/gumu.kr\/en\/115\/how-to-use-jupyter-lab-with-docker\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/gumu.kr\/en\/115\/how-to-use-jupyter-lab-with-docker\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/gumu.kr\/en\/115\/how-to-use-jupyter-lab-with-docker\/#primaryimage\",\"url\":\"https:\/\/gumu.kr\/en\/wp-content\/uploads\/sites\/2\/2019\/10\/image-60.png\",\"contentUrl\":\"https:\/\/gumu.kr\/en\/wp-content\/uploads\/sites\/2\/2019\/10\/image-60.png\",\"width\":1141,\"height\":576,\"caption\":\"Jupyter Lab versus tree\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/gumu.kr\/en\/115\/how-to-use-jupyter-lab-with-docker\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/gumu.kr\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to use Jupyter Lab with docker\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/gumu.kr\/en\/#website\",\"url\":\"https:\/\/gumu.kr\/en\/\",\"name\":\"Gumu&#039;s treasure box\",\"description\":\"Archive of posts by GuMu\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/gumu.kr\/en\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/gumu.kr\/en\/#\/schema\/person\/0fe920f3ca791704461d829aae2a3f31\",\"name\":\"Gugu\",\"url\":\"https:\/\/gumu.kr\/en\/author\/kayho\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to use Jupyter Lab with docker - Gumu&#039;s treasure box","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:\/\/gumu.kr\/en\/115\/how-to-use-jupyter-lab-with-docker\/","og_locale":"en_US","og_type":"article","og_title":"How to use Jupyter Lab with docker - Gumu&#039;s treasure box","og_description":"This posting is applicable to the Linux environment of the Synology NAS, but it is also available to most people who use the dockers. 1. Installation Based on the Synology NAS, search the docker registry as Jupiter. Double-click on the jupiter \/datascience-notbook at the top to download. On the Images [&hellip;]","og_url":"https:\/\/gumu.kr\/en\/115\/how-to-use-jupyter-lab-with-docker\/","og_site_name":"Gumu&#039;s treasure box","article_published_time":"2019-07-19T05:23:30+00:00","article_modified_time":"2019-10-25T02:01:53+00:00","og_image":[{"width":1141,"height":576,"url":"https:\/\/gumu.kr\/en\/wp-content\/uploads\/sites\/2\/2019\/10\/image-60.png","type":"image\/png"}],"author":"Gugu","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Gugu","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/gumu.kr\/en\/115\/how-to-use-jupyter-lab-with-docker\/","url":"https:\/\/gumu.kr\/en\/115\/how-to-use-jupyter-lab-with-docker\/","name":"How to use Jupyter Lab with docker - Gumu&#039;s treasure box","isPartOf":{"@id":"https:\/\/gumu.kr\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/gumu.kr\/en\/115\/how-to-use-jupyter-lab-with-docker\/#primaryimage"},"image":{"@id":"https:\/\/gumu.kr\/en\/115\/how-to-use-jupyter-lab-with-docker\/#primaryimage"},"thumbnailUrl":"https:\/\/gumu.kr\/en\/wp-content\/uploads\/sites\/2\/2019\/10\/image-60.png","datePublished":"2019-07-19T05:23:30+00:00","dateModified":"2019-10-25T02:01:53+00:00","author":{"@id":"https:\/\/gumu.kr\/en\/#\/schema\/person\/0fe920f3ca791704461d829aae2a3f31"},"breadcrumb":{"@id":"https:\/\/gumu.kr\/en\/115\/how-to-use-jupyter-lab-with-docker\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gumu.kr\/en\/115\/how-to-use-jupyter-lab-with-docker\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/gumu.kr\/en\/115\/how-to-use-jupyter-lab-with-docker\/#primaryimage","url":"https:\/\/gumu.kr\/en\/wp-content\/uploads\/sites\/2\/2019\/10\/image-60.png","contentUrl":"https:\/\/gumu.kr\/en\/wp-content\/uploads\/sites\/2\/2019\/10\/image-60.png","width":1141,"height":576,"caption":"Jupyter Lab versus tree"},{"@type":"BreadcrumbList","@id":"https:\/\/gumu.kr\/en\/115\/how-to-use-jupyter-lab-with-docker\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gumu.kr\/en\/"},{"@type":"ListItem","position":2,"name":"How to use Jupyter Lab with docker"}]},{"@type":"WebSite","@id":"https:\/\/gumu.kr\/en\/#website","url":"https:\/\/gumu.kr\/en\/","name":"Gumu&#039;s treasure box","description":"Archive of posts by GuMu","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gumu.kr\/en\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/gumu.kr\/en\/#\/schema\/person\/0fe920f3ca791704461d829aae2a3f31","name":"Gugu","url":"https:\/\/gumu.kr\/en\/author\/kayho\/"}]}},"_links":{"self":[{"href":"https:\/\/gumu.kr\/en\/wp-json\/wp\/v2\/posts\/115"}],"collection":[{"href":"https:\/\/gumu.kr\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gumu.kr\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gumu.kr\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gumu.kr\/en\/wp-json\/wp\/v2\/comments?post=115"}],"version-history":[{"count":11,"href":"https:\/\/gumu.kr\/en\/wp-json\/wp\/v2\/posts\/115\/revisions"}],"predecessor-version":[{"id":126,"href":"https:\/\/gumu.kr\/en\/wp-json\/wp\/v2\/posts\/115\/revisions\/126"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gumu.kr\/en\/wp-json\/wp\/v2\/media\/135"}],"wp:attachment":[{"href":"https:\/\/gumu.kr\/en\/wp-json\/wp\/v2\/media?parent=115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gumu.kr\/en\/wp-json\/wp\/v2\/categories?post=115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gumu.kr\/en\/wp-json\/wp\/v2\/tags?post=115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}