{"id":947,"date":"2024-03-13T08:50:42","date_gmt":"2024-03-12T23:50:42","guid":{"rendered":"https:\/\/blog.marubaram.wo.tc\/?p=947"},"modified":"2024-03-13T08:50:42","modified_gmt":"2024-03-12T23:50:42","slug":"vscode-magic-line-%ec%8a%a4%ed%81%ac%eb%a6%bd%ed%8a%b8%eb%a1%9c-%ec%8b%a4%ed%96%89","status":"publish","type":"post","link":"https:\/\/blog.marubaram.wo.tc\/?p=947","title":{"rendered":"[VSCode] Magic Line \uc2a4\ud06c\ub9bd\ud2b8\ub85c \uc2e4\ud589"},"content":{"rendered":"\n<p>VS Code\ub85c Cell \ub2e8\uc704\ub85c \uc2e4\ud589\ud560 \ub54c\ub3c4 \uc788\uace0 \uc804\uccb4 \uc2a4\ud06c\ub9bd\ud2b8\ub85c \uc2e4\ud589\ud560 \ub54c\ub3c4 \uc788\ub294\ub370, \ud56d\uc0c1 \ubb38\uc81c\uac00 \ub418\ub294\uac8c \ub9e4\uc9c1\ub77c\uc778\uc774\ub2e4.<\/p>\n\n\n\n<ul>\n<li>\ub9e4\uc9c1\ub77c\uc778\uc758 \uc608: <br><code>%matplotlib inline<\/code><\/li>\n<\/ul>\n\n\n\n<p>VS Code\uc5d0\uc11c error \ub85c \ud45c\uae30\ud558\ub294 \uac83\ub3c4 \ub9c8\uc74c\uc5d0 \uc548\ub4e4\uace0 \uc2e4\ud589\ud560 \ub54c\ub9c8\ub2e4 \uc8fc\uc11d\ucc98\ub9ac\ud588\ub2e4\uac00 \ub9d0\uc558\ub2e4\uac00 \ud558\ub294 \uac83\ub3c4 \uadc0\ucc2e\uc558\ub294\ub370.. \ub2e4\uc74c\uc758 \ubc29\ubc95\uc73c\ub85c \ucf54\ub4dc\ud654\uac00 \uac00\ub2a5\ud558\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from IPython import get_ipython\nget_ipython().run_line_magic('matplotlib', 'inline')<\/code><\/pre>\n\n\n\n<p>\uc77c\ubc18(\ubc14\ub2d0\ub77c) Python\uc5d0\uc11c\ub294 get_ipython()\uc740 None\uc744 \ub9ac\ud134\ud558\uae30 \ub54c\ubb38\uc5d0 \ud574\ub2f9 \ucf54\ub4dc\ub294 AttributeError\uac00 \ubc1c\uc0dd\ud55c\ub2e4.<\/p>\n\n\n\n<p>\uadf8\ub798\uc11c \uc870\uae08 \uc218\uc815\uc744 \ud574\ubcf4\uc790\uba74, \uc544\ub798\ucc98\ub7fc \ucc98\ub9ac\uac00 \uac00\ub2a5\ud558<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from IPython import get_ipython\nif get_ipython():\n   get_ipython().run_line_magic('matplotlib', 'inline')<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>VS Code\ub85c Cell \ub2e8\uc704\ub85c \uc2e4\ud589\ud560 \ub54c\ub3c4 \uc788\uace0 \uc804\uccb4 \uc2a4\ud06c\ub9bd\ud2b8\ub85c \uc2e4\ud589\ud560 \ub54c\ub3c4 \uc788\ub294\ub370, \ud56d\uc0c1 \ubb38\uc81c\uac00 \ub418\ub294\uac8c \ub9e4\uc9c1\ub77c\uc778\uc774\ub2e4. VS Code\uc5d0\uc11c error \ub85c \ud45c\uae30\ud558\ub294 \uac83\ub3c4 \ub9c8\uc74c\uc5d0 \uc548\ub4e4\uace0 \uc2e4\ud589\ud560 \ub54c\ub9c8\ub2e4 \uc8fc\uc11d\ucc98\ub9ac\ud588\ub2e4\uac00 \ub9d0\uc558\ub2e4\uac00 \ud558\ub294 \uac83\ub3c4 \uadc0\ucc2e\uc558\ub294\ub370.. \ub2e4\uc74c\uc758 \ubc29\ubc95\uc73c\ub85c \ucf54\ub4dc\ud654\uac00 \uac00\ub2a5\ud558\ub2e4. \uc77c\ubc18(\ubc14\ub2d0\ub77c) Python\uc5d0\uc11c\ub294 get_ipython()\uc740 None\uc744 \ub9ac\ud134\ud558\uae30 \ub54c\ubb38\uc5d0 \ud574\ub2f9 \ucf54\ub4dc\ub294 AttributeError\uac00 \ubc1c\uc0dd\ud55c\ub2e4. \uadf8\ub798\uc11c \uc870\uae08 \uc218\uc815\uc744 \ud574\ubcf4\uc790\uba74, \uc544\ub798\ucc98\ub7fc \ucc98\ub9ac\uac00 \uac00\ub2a5\ud558<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[336],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.marubaram.wo.tc\/index.php?rest_route=\/wp\/v2\/posts\/947"}],"collection":[{"href":"https:\/\/blog.marubaram.wo.tc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.marubaram.wo.tc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.marubaram.wo.tc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.marubaram.wo.tc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=947"}],"version-history":[{"count":1,"href":"https:\/\/blog.marubaram.wo.tc\/index.php?rest_route=\/wp\/v2\/posts\/947\/revisions"}],"predecessor-version":[{"id":948,"href":"https:\/\/blog.marubaram.wo.tc\/index.php?rest_route=\/wp\/v2\/posts\/947\/revisions\/948"}],"wp:attachment":[{"href":"https:\/\/blog.marubaram.wo.tc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=947"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.marubaram.wo.tc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=947"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.marubaram.wo.tc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}