{"id":1867,"date":"2013-10-24T23:25:00","date_gmt":"2013-10-24T14:25:00","guid":{"rendered":"http:\/\/hyunsu.com\/wordpress\/?p=1867"},"modified":"2013-10-31T15:30:00","modified_gmt":"2013-10-31T06:30:00","slug":"1867","status":"publish","type":"post","link":"https:\/\/hyunsu.com\/wordpress\/?p=1867","title":{"rendered":"ipython \uc124\uce58"},"content":{"rendered":"<p>ubuntu 12.04 \uc5d0\uc11c ipython\uc744 \uc124\uce58\ud558\uace0 ipython notebook \uc744 \uc6f9\ube0c\ub77c\uc6b0\uc800\ub85c \uc811\uc18d\ud574\ubcf4\uc790.<\/p>\n<p>\uc0ac\uc2e4 \uadf8\ub0e5 apt-get install ipython-notebok \uba85\ub839\uc73c\ub85c \ub9e4\uc6b0 \uac04\ub2e8\ud558\uac8c \uc124\uce58\ud560 \uc218 \uc788\ub2e4.<br \/>\n\ud558\uc9c0\ub9cc ubuntu 12.04 \uc5d0 \ud3ec\ud568\ub41c ipython \uc740 \uc9c0\ub09c \ubc84\uc804\uc774\uace0 \uc6f9\uc778\ud130\ud398\uc774\uc2a4\uac00 \uc880 \uad6c\ub9ac\uace0 \uae30\ub2a5\uc774 \ub5a8\uc5b4\uc9c4\ub2e4.<br \/>\n\uadf8\ub798\uc11c pip\ub97c \ud1b5\ud574\uc11c \ucd5c\uc2e0\ubc84\uc804\uc744 \uc124\uce58\ud560 \uac83\uc774\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n<p>\ud544\uc694\ud55c \ud328\ud0a4\uc9c0\ub97c \ubbf8\ub9ac \uc124\uce58\ud55c\ub2e4.<\/p>\n<pre class=\"lang:default decode:true\">magellan@ucloud:~$ sudo apt-get install -y python-dev python-pip python-virtualenv gcc g++<\/pre>\n<p>&nbsp;<\/p>\n<p>virtualenv\ub97c \uc774\uc6a9\ud558\uc5ec \uac00\uc0c1\ud658\uacbd\uc5d0\ub2e4\uac00 \uc124\uce58\ud558\uc790.<\/p>\n<pre class=\"lang:default decode:true\">magellan@ucloud:~$ virtualenv --no-site-packages ipython_env\r\nmagellan@ucloud:~$ . ipython_env\/bin\/activate\r\n(ipython_env)magellan@ucloud:~$<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\uc900\ube44\uac00 \ub418\uc5c8\uc73c\ub2c8 ipython\uc744 \uc124\uce58\ud558\uc790<\/p>\n<pre class=\"lang:default decode:true\">(ipython_env)magellan@ucloud:~$ pip install ipython[all]<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>jinja, tornado, sphinx, zmq \ub4f1 \uc774\uac83\uc800\uac83 \ub9c9 \uc124\uce58\ub41c\ub2e4.<br \/>\n\ubb50\uac00 \uc124\uce58\ub410\ub098 \ubcf4\uc790.<\/p>\n<pre class=\"lang:default decode:true\">(ipython_env)magellan@ucloud:~$ pip freeze\r\nJinja2==2.7.1\r\nMarkupSafe==0.18\r\nPygments==1.6\r\nSphinx==1.2b3\r\nargparse==1.2.1\r\ndistribute==0.6.24\r\ndocutils==0.11\r\nipython==1.1.0\r\nnose==1.3.0\r\npyzmq==13.1.0\r\ntornado==3.1.1\r\nwsgiref==0.1.2<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>ipython\uc744 \uc2e4\ud589\ud574\ubcf4\uc790.<\/p>\n<pre class=\"lang:default decode:true\">(ipython_env)magellan@ucloud:~$ ipython\r\nPython 2.7.3 (default, Sep 26 2013, 20:03:06)\r\nType \"copyright\", \"credits\" or \"license\" for more information.\r\n\r\nIPython 1.1.0 -- An enhanced Interactive Python.\r\n? -&gt; Introduction and overview of IPython's features.\r\n%quickref -&gt; Quick reference.\r\nhelp -&gt; Python's own help system.\r\nobject? -&gt; Details about 'object', use 'object??' for extra details.\r\n\r\nIn [1]:<\/pre>\n<p>\uc774\uc81c ipython notebook \ub3c4 \uc2e4\ud589\ud574\ubcf4\uc790.<\/p>\n<pre class=\"lang:default decode:true\">(ipython_env)magellan@ucloud:~$ ipython notebook<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\uc2e4\ud589\ud558\uba74 \uc7a0\uae50 \uc2e4\ud589\uc5d0 \ub300\ud55c \ucd9c\ub825\uc774 \ubcf4\uc774\ub354\ub2c8 \ud14d\uc2a4\ud2b8\uc6f9\ube0c\ub77c\uc6b0\uc800\uc778 w3m\ud654\uba74\uc73c\ub85c \ub118\uc5b4\uac04\ub2e4.<br \/>\n\uc774\uac74 \ubcfc \ud544\uc694\uac00 \uc5c6\uc73c\ubbc0\ub85c q \ud0a4\ub97c \ub20c\ub7ec \ube60\uc838 \ub098\uc624\uba74 \uc544\ub798\uc640 \uac19\uc774 \ub098\uc628\ub2e4.<\/p>\n<pre class=\"lang:default decode:true\">(ipython_env)magellan@ucloud:~$ ipython notebook\r\n2013-10-24 17:22:12.454 [NotebookApp] Using existing profile dir: u'\/home\/magellan\/.ipython\/profile_default'\r\n2013-10-24 17:22:12.460 [NotebookApp] Using MathJax from CDN: http:\/\/cdn.mathjax.org\/mathjax\/latest\/MathJax.js\r\n2013-10-24 17:22:12.480 [NotebookApp] Serving notebooks from local directory: \/home\/magellan\r\n2013-10-24 17:22:12.481 [NotebookApp] The IPython Notebook is running at: http:\/\/127.0.0.1:8888\/\r\n2013-10-24 17:22:12.481 [NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).<\/pre>\n<p>&nbsp;<\/p>\n<p>\uc6f9\ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c http:\/\/127.0.0.1:8888 \uc73c\ub85c \uc811\uc18d\ud558\uba74 ipython notebook \uc758 \ud654\uba74\uc744 \ubcfc \uc218 \uc788\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n<p>\uadf8\ub7f0\ub370 ipython notebook \uc758 \uc2e4\ud589\ub420 \ub54c \ubc14\uc778\ub529\ub418\ub294 \uc8fc\uc18c\uac00 127.0.0.1\uc774\uae30 \ub54c\ubb38\uc5d0<br \/>\nipython\uc744 \uc11c\ubc84\uc5d0 \uc124\uce58\ud558\uace0 \uc678\ubd80\uc5d0\uc11c \uc811\uc18d\ud560\ub824\uba74 \ubc14\uc778\ub529\ub418\ub294 \uc8fc\uc18c\ub97c \uc218\uc815\ud560 \ud544\uc694\uac00 \uc788\ub2e4.<\/p>\n<p>\uc124\uc815\uc744 \uc218\uc815\ud574\ubcf4\uc790.<br \/>\n\uc124\uc815\uc744 \uc218\uc815\ud560\ub824\uba74 \uc124\uc815\ud30c\uc77c\uc744 \uc0dd\uc131\ud574\uc57c \ud55c\ub2e4.<\/p>\n<pre class=\"lang:default decode:true\">(ipython_env)magellan@ucloud:~$ ipython profile create\r\n[ProfileCreate] Generating default config file: u'\/home\/magellan\/.ipython\/profile_default\/ipython_config.py'\r\n[ProfileCreate] Generating default config file: u'\/home\/magellan\/.ipython\/profile_default\/ipython_notebook_config.py'\r\n[ProfileCreate] Generating default config file: u'\/home\/magellan\/.ipython\/profile_default\/ipython_nbconvert_config.py'<\/pre>\n<p>\uc124\uc815\ud30c\uc77c \uc911 \/home\/magellan\/.ipython\/profile_default\/ipython_notebook_config.py \uc5f4\uc5b4\uc11c \uc544\ub798\ucc98\ub7fc \uc218\uc815\ud55c\ub2e4.<\/p>\n<pre class=\"lang:default decode:true\"># c.NotebookApp.ip = '127.0.0.1'\r\nc.NotebookApp.ip = '0.0.0.0'<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\ub2e4\uc2dc ipython notebook\uc744 \uc2e4\ud589\ud574\ubcf4\uc790.<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"lang:default decode:true\">(ipython_env)magellan@ucloud:~$ ipython notebook\r\n2013-10-24 17:22:12.454 [NotebookApp] Using existing profile dir: u'\/home\/magellan\/.ipython\/profile_default'\r\n2013-10-24 17:22:12.460 [NotebookApp] Using MathJax from CDN: http:\/\/cdn.mathjax.org\/mathjax\/latest\/MathJax.js\r\n2013-10-24 17:22:12.480 [NotebookApp] Serving notebooks from local directory: \/home\/magellan\r\n2013-10-24 17:22:12.481 [NotebookApp] The IPython Notebook is running at: http:\/\/0.0.0.0:8888\/\r\n2013-10-24 17:22:12.481 [NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).<\/pre>\n<p>\uc811\uc18d\uc8fc\uc18c\uac00 http:\/\/0.0.0.0:8888\/ \ub85c \ub41c \uac83\uc744 \ud655\uc778\ud560 \uc218 \uc788\ub2e4.<\/p>\n<p>\uc774\uc81c \uc6f9\ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c http:\/\/\uc11c\ubc84\uc8fc\uc18c:8888 \ub85c \uc811\uc18d\ud558\uba74 ipython notebook \ud654\uba74\uc744 \ubcfc \uc218 \uc788\ub2e4.<\/p>\n<p><a href=\"https:\/\/hyunsu.com\/wordpress\/wp-content\/uploads\/2013\/10\/Cap-2013-10-24-17-34-06-710.png\" rel=\"attachment wp-att-1868\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1868\" alt=\"Cap 2013-10-24 17-34-06-710\" src=\"https:\/\/hyunsu.com\/wordpress\/wp-content\/uploads\/2013\/10\/Cap-2013-10-24-17-34-06-710.png\" width=\"818\" height=\"338\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ubuntu 12.04 \uc5d0\uc11c ipython\uc744 \uc124\uce58\ud558\uace0 ipython notebook \uc744 \uc6f9\ube0c\ub77c\uc6b0\uc800\ub85c \uc811\uc18d\ud574\ubcf4\uc790. \uc0ac\uc2e4 \uadf8\ub0e5 apt-get install ipython-notebok \uba85\ub839\uc73c\ub85c \ub9e4\uc6b0 \uac04\ub2e8\ud558\uac8c \uc124\uce58\ud560 \uc218 \uc788\ub2e4. \ud558\uc9c0\ub9cc ubuntu 12.04 \uc5d0 \ud3ec\ud568\ub41c ipython \uc740 \uc9c0\ub09c \ubc84\uc804\uc774\uace0 \uc6f9\uc778\ud130\ud398\uc774\uc2a4\uac00 \uc880 \uad6c\ub9ac\uace0 \uae30\ub2a5\uc774 \ub5a8\uc5b4\uc9c4\ub2e4. \uadf8\ub798\uc11c pip\ub97c \ud1b5\ud574\uc11c \ucd5c\uc2e0\ubc84\uc804\uc744 \uc124\uce58\ud560 \uac83\uc774\ub2e4. &nbsp; \ud544\uc694\ud55c \ud328\ud0a4\uc9c0\ub97c \ubbf8\ub9ac \uc124\uce58\ud55c\ub2e4. magellan@ucloud:~$ sudo apt-get install -y python-dev python-pip python-virtualenv gcc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55],"tags":[57],"class_list":["post-1867","post","type-post","status-publish","format-standard","hentry","category-coding","tag-ipython"],"_links":{"self":[{"href":"https:\/\/hyunsu.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1867","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hyunsu.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hyunsu.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hyunsu.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hyunsu.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1867"}],"version-history":[{"count":5,"href":"https:\/\/hyunsu.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1867\/revisions"}],"predecessor-version":[{"id":1876,"href":"https:\/\/hyunsu.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1867\/revisions\/1876"}],"wp:attachment":[{"href":"https:\/\/hyunsu.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hyunsu.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hyunsu.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}