{"id":1696,"date":"2021-04-07T12:43:46","date_gmt":"2021-04-07T03:43:46","guid":{"rendered":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/?p=1696"},"modified":"2021-04-07T13:27:21","modified_gmt":"2021-04-07T04:27:21","slug":"xeus-cling-%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/1696\/","title":{"rendered":"xeus-cling \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>C++ \u306e\u30a4\u30f3\u30bf\u30fc\u30d7\u30ea\u30bf\u30fc\u5b9f\u88c5\u3067\u3042\u308b Cling \u3092 Jupyter Notebook \u3067\u4f7f\u3046\u305f\u3081\uff0c<a href=\"https:\/\/github.com\/jupyter-xeus\/xeus-cling\" target=\"_blank\" rel=\"noopener\">xeus-cling<\/a> \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/jupyter-xeus\/xeus-cling\" target=\"_blank\" rel=\"noopener\">GitHub &#8211; jupyter-xeus\/xeus-cling: Jupyter kernel for the C++ programming language<\/a><br \/>\n<code>xeus-cling<\/code> is a Jupyter kernel for C++ based on the C++ interpreter <a href=\"https:\/\/github.com\/root-project\/cling\">cling<\/a> and the native implementation of the Jupyter protocol <a href=\"https:\/\/github.com\/jupyter-xeus\/xeus\">xeus<\/a>.<\/li>\n<\/ul>\n<p>Cling \u81ea\u4f53\u306b Jupyter kernel \u304c\u3064\u3044\u3066\u3044\u308b\u304c\uff0c<a href=\"https:\/\/root.cern\/download\/cling\/\">\u30d0\u30a4\u30ca\u30ea\u30fc\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30b5\u30a4\u30c8<\/a>\u304c\u3057\u3070\u3089\u304f\u304a\u4f11\u307f\u72b6\u614b\u306a\u306e\u3067\uff0c<code>miniconda<\/code> \u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044 xeus-cling \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u6311\u6226\u3002\uff08<code>conda<\/code> \u3068 <code>pip<\/code> \u3092\u6df7\u305c\u308b\u3068\u5371\u967a\u306a\u6c17\u304c\u3057\u3066\u4eca\u307e\u3067\u624b\u3092\u51fa\u3055\u305a\u306b\u3044\u307e\u3057\u305f\u304c\uff0c\u4ed5\u65b9\u304c\u306a\u3044&#8230;\uff09<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u3067\u304d\u305d\u3046\u3060\u3002\u624b\u5143\u306e\u30de\u30b7\u30f3\u3067\u500b\u4eba\u7684\u306b\u8a66\u9a13\u904b\u7528\u4e2d\u3067\u3059\u304c\uff0cAnaconda \u30e9\u30a4\u30bb\u30f3\u30b9\u3092\u719f\u8aad\u3057\u3066\u304b\u3089\u3067\u306a\u3044\u3068\u7c21\u5358\u306b\u904b\u7528\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<h3>macOS<\/h3>\n<pre>brew install miniconda\r\nconda install -c conda-forge xeus-cling\r\njupyter-kernelspec install \/usr\/local\/Caskroom\/miniconda\/base\/share\/jupyter\/kernels\/xcpp17 --sys-prefix\r\n# \u78ba\u8a8d\r\njupyter-kernelspec list<\/pre>\n<h3>Ubuntu<\/h3>\n<pre>curl -O https:\/\/repo.anaconda.com\/miniconda\/Miniconda3-latest-Linux-x86_64.sh\r\nsudo bash Miniconda3-latest-Linux-x86_64.sh\r\n# \/usr\/local\/miniconda3 \u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\n    # \/etc\/bash.bashrc \u306b\u4ee5\u4e0b\u3092\u8ffd\u52a0\r\n    # miniconda\r\n    export PATH=\"$PATH:\/usr\/local\/miniconda3\/bin\"\r\nsudo conda install -c conda-forge xeus-cling\r\nsudo jupyter-kernelspec install \/usr\/local\/miniconda3\/share\/jupyter\/kernels\/xcpp17 --sys-prefix<\/pre>\n<h3>Jupyter kernel \u306e\u5229\u7528\u4f8b<\/h3>\n<ul>\n<li><a href=\"https:\/\/home.hirosaki-u.ac.jp\/jupyter\/cpp\/\">\u306f\u3057\u3099\u3081\u3066\u306e C++ \u30d5\u309a\u30ed\u30af\u3099\u30e9\u30df\u30f3\u30af\u3099 &#8211; \u5f18\u524d\u5927\u5b66 Home Sweet Home<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>C++ \u306e\u30a4\u30f3\u30bf\u30fc\u30d7\u30ea\u30bf\u30fc\u5b9f\u88c5\u3067\u3042\u308b Cling \u3092 Jup <a href=\"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/1696\/\" class=\"read-more\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[14,7,12],"tags":[],"class_list":["post-1696","post","type-post","status-publish","format-standard","hentry","category-jupyter","category-macos","category-ubuntu"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/posts\/1696","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/comments?post=1696"}],"version-history":[{"count":4,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/posts\/1696\/revisions"}],"predecessor-version":[{"id":1700,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/posts\/1696\/revisions\/1700"}],"wp:attachment":[{"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/media?parent=1696"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/categories?post=1696"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/tags?post=1696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}