{"id":46094,"date":"2023-01-01T15:31:59","date_gmt":"2023-11-26T18:07:05","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/46094-2\/"},"modified":"2024-04-29T08:01:33","modified_gmt":"2024-04-29T00:01:33","slug":"46094-2","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/46094-2\/","title":{"rendered":""},"content":{"rendered":"<h2>\u3010google colaboratory\u3011\u5165\u9580\uff1ajupyter notebook\u306e\u57fa\u672c\u64cd\u4f5c\u3068\u4f7f\u3044\u65b9<\/h2>\n<p>\u3053\u3093\u306b\u3061\u306f\u3002\u4eca\u56de\u306f\u3001google colaboratory\u306b\u3064\u3044\u3066\u521d\u5fc3\u8005\u30a8\u30f3\u30b8\u30cb\u30a2\u306b\u5411\u3051\u3066\u3001\u57fa\u672c\u64cd\u4f5c\u3068\u4f7f\u3044\u65b9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>google colaboratory\uff08\u4ee5\u4e0b\u3001colab\uff09\u306f\u3001\u30af\u30e9\u30a6\u30c9\u30d9\u30fc\u30b9\u306epython\u958b\u767a\u74b0\u5883\u3067\u3042\u308a\u3001jupyter notebook\u3092\u30d9\u30fc\u30b9\u3068\u3057\u3066\u3044\u307e\u3059\u3002colab\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u81ea\u5206\u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3084\u30e9\u30c3\u30d7\u30c8\u30c3\u30d7\u306bpython\u74b0\u5883\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u305b\u305a\u306b\u3001\u30d6\u30e9\u30a6\u30b6\u4e0a\u3067python\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001colab\u306f\u7121\u6599\u3067\u63d0\u4f9b\u3055\u308c\u3066\u304a\u308a\u3001google\u306e\u30a4\u30f3\u30d5\u30e9\u30b9\u30c8\u30e9\u30af\u30c1\u30e3\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u9ad8\u901f\u306a\u51e6\u7406\u3084\u5927\u898f\u6a21\u306a\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u51e6\u7406\u3082\u884c\u3048\u307e\u3059\u3002<\/p>\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001colab\u306e\u57fa\u672c\u64cd\u4f5c\u3068\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002colab\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u304b\u3089\u3001\u30bb\u30eb\u306e\u7a2e\u985e\u3084\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u30ad\u30fc\u3001\u30de\u30fc\u30af\u30c0\u30a6\u30f3\u30bb\u30eb\u306e\u4f7f\u3044\u65b9\u3001\u30b0\u30e9\u30d5\u306e\u63cf\u753b\u65b9\u6cd5\u3001\u305d\u3057\u3066notebook\u306e\u5171\u6709\u65b9\u6cd5\u307e\u3067\u3092\u9806\u306b\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h3>jupyter notebook\u3068\u306f\uff1f<\/h3>\n<p>jupyter notebook\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3092\u4f7f\u7528\u3057\u305f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306eweb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3059\u3002python\u3001r\u3001julia\u306a\u3069\u69d8\u3005\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306b\u5bfe\u5fdc\u3057\u3066\u304a\u308a\u3001\u30b3\u30fc\u30c9\u3084\u7d50\u679c\u3001\u8aac\u660e\u6587\u3092\u30bb\u30eb\u3068\u3044\u3046\u5358\u4f4d\u3067\u4f5c\u6210\u3057\u307e\u3059\u3002\u30bb\u30eb\u3054\u3068\u306b\u30b3\u30fc\u30c9\u306e\u5b9f\u884c\u3084\u7de8\u96c6\u304c\u53ef\u80fd\u3067\u3042\u308a\u3001\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u958b\u767a\u3084\u30c7\u30fc\u30bf\u89e3\u6790\u306b\u5411\u3044\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>jupyter notebook\u306e\u7279\u5fb4\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b9f\u884c\u7d50\u679c\u3092\u305d\u306e\u5834\u3067\u8868\u793a\u3067\u304d\u308b\u3053\u3068\u3067\u3059\u3002\u30bb\u30eb\u3054\u3068\u306b\u5b9f\u884c\u7d50\u679c\u3084\u51fa\u529b\u7d50\u679c\u304c\u8868\u793a\u3055\u308c\u308b\u305f\u3081\u3001\u30c7\u30fc\u30bf\u51e6\u7406\u3084\u30b0\u30e9\u30d5\u306e\u8868\u793a\u306a\u3069\u3001\u8907\u6570\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u6210\u308a\u7acb\u3064\u4f5c\u696d\u3092\u4e00\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u307e\u3068\u3081\u3066\u8a18\u8ff0\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u30de\u30fc\u30af\u30c0\u30a6\u30f3\u30bb\u30eb\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u6587\u7ae0\u306e\u66f8\u304d\u8fbc\u307f\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306b\u3001jupyter notebook\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"c1\"># \u3053\u306e\u30b3\u30fc\u30c9\u30bb\u30eb\u306fpython\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u30bb\u30eb\u3067\u3059\r\n# \u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u30ad\u30fc\u3067\u300cshift + enter\u300d\u3092\u62bc\u3059\u3053\u3068\u3067\u3001\u5b9f\u884c\u53ef\u80fd\u3067\u3059\r\n<\/span>\r\n<span class=\"c1\"># \u5909\u6570\u306e\u5b9a\u7fa9\r\n<\/span><span class=\"n\">x<\/span> <span class=\"o\">=<\/span> <span class=\"mi\">10<\/span>\r\n<span class=\"n\">y<\/span> <span class=\"o\">=<\/span> <span class=\"mi\">20<\/span>\r\n\r\n<span class=\"c1\"># \u8db3\u3057\u7b97\u306e\u5b9f\u884c\u3068\u7d50\u679c\u306e\u8868\u793a\r\n<\/span><span class=\"n\">result<\/span> <span class=\"o\">=<\/span> <span class=\"n\">x<\/span> <span class=\"o\">+<\/span> <span class=\"n\">y<\/span>\r\n<span class=\"n\">result<\/span>\r\n<\/code><\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u30bb\u30eb\u3054\u3068\u306b\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3066\u7d50\u679c\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>notebook\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3068\u30bb\u30eb\u306e\u7a2e\u985e<\/h3>\n<p>jupyter notebook\u3067\u306f\u3001\u30bb\u30eb\u5358\u4f4d\u3067\u30b3\u30fc\u30c9\u3084\u30c6\u30ad\u30b9\u30c8\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002\u30bb\u30eb\u306f\u5927\u304d\u304f\u5206\u3051\u3066code\u30bb\u30eb\u3068markdown\u30bb\u30eb\u306e2\u3064\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>code\u30bb\u30eb\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5165\u529b\u3084\u5b9f\u884c\u3092\u884c\u3046\u305f\u3081\u306e\u30bb\u30eb\u3067\u3059\u3002python\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u3001shift + enter\u3092\u62bc\u3059\u3053\u3068\u3067\u5b9f\u884c\u7d50\u679c\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>markdown\u30bb\u30eb\u306f\u3001\u30c6\u30ad\u30b9\u30c8\u3084\u30de\u30fc\u30af\u30c0\u30a6\u30f3\u5f62\u5f0f\u306e\u6587\u7ae0\u3092\u8a18\u8ff0\u3059\u308b\u305f\u3081\u306e\u30bb\u30eb\u3067\u3059\u3002\u30bb\u30eb\u30bf\u30a4\u30d7\u3092markdown\u306b\u8a2d\u5b9a\u3059\u308b\u3068\u3001\u30bb\u30eb\u5185\u306b\u6587\u7ae0\u3092\u8a18\u8ff0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30bb\u30eb\u5185\u3067html\u3084latex\u3068\u3044\u3063\u305f\u8a18\u6cd5\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306b\u3001\u30bb\u30eb\u306e\u7a2e\u985e\u3054\u3068\u306b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n<h4>code\u30bb\u30eb\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h4>\n<p>`python<\/p>\n<h1>\u3053\u308c\u306fpython\u306e\u30b3\u30fc\u30c9\u30bb\u30eb\u3067\u3059<\/h1>\n<h1>python\u306e\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3057\u3066\u5b9f\u884c\u3067\u304d\u307e\u3059<\/h1>\n<h1>\u5909\u6570\u306e\u5b9a\u7fa9<\/h1>\n<p>x = 10<br \/>\ny = 20<\/p>\n<h1>\u8db3\u3057\u7b97\u306e\u5b9f\u884c\u3068\u7d50\u679c\u306e\u8868\u793a<\/h1>\n<p>result = x + y<br \/>\nresult<br \/>\n`<\/p>\n<h4>markdown\u30bb\u30eb\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h4>\n<p>`markdown<\/p>\n<h1>\u3053\u308c\u306fmarkdown\u306e\u30bb\u30eb\u3067\u3059<\/h1>\n<p>\u3053\u308c\u306f\u6bb5\u843d\u306e\u30c6\u30ad\u30b9\u30c8\u3067\u3059\u3002\u592a\u5b57\u3084\u659c\u4f53\u3068\u3044\u3063\u305f\u88c5\u98fe\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u30ea\u30b9\u30c8\u3082\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30ea\u30b9\u30c81<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30ea\u30b9\u30c82<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30ea\u30b9\u30c83<\/ul>\n<p>\u30c6\u30fc\u30d6\u30eb\u3082\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div>\n<div class=\"post-table\">header 1header 2cell 1cell 2cell 3cell 4`<\/div>\n<\/div>\n<p>\u30bb\u30eb\u306e\u5b9f\u884c\u65b9\u6cd5\u306f\u3001shift + enter\u3067\u5b9f\u884c\u3055\u308c\u3001\u6b21\u306e\u30bb\u30eb\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002ctrl + enter\u3092\u62bc\u3059\u3068\u5b9f\u884c\u3055\u308c\u307e\u3059\u304c\u3001\u6b21\u306e\u30bb\u30eb\u306b\u79fb\u52d5\u305b\u305a\u306b\u73fe\u5728\u306e\u30bb\u30eb\u306b\u7559\u307e\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u30bb\u30eb\u3092\u8ffd\u52a0\u3059\u308b\u306b\u306f\u3001\u30e1\u30cb\u30e5\u30fc\u30d0\u30fc\u306e\u300c+\u30b3\u30fc\u30c9\u30bb\u30eb\u300d\u307e\u305f\u306f\u300c+\u30c6\u30ad\u30b9\u30c8\u30bb\u30eb\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u30ad\u30fc\u306e\u7d39\u4ecb\uff1a\u4fbf\u5229\u306a\u64cd\u4f5c\u65b9\u6cd5<\/h3>\n<p>jupyter notebook\u3067\u306f\u3001\u4fbf\u5229\u306a\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u30ad\u30fc\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u30ad\u30fc\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u30b9\u30e0\u30fc\u30ba\u306a\u958b\u767a\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306b\u3001\u3044\u304f\u3064\u304b\u306e\u4e3b\u306a\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u30ad\u30fc\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>shift + enter: \u73fe\u5728\u306e\u30bb\u30eb\u3092\u5b9f\u884c\u3057\u3001\u6b21\u306e\u30bb\u30eb\u306b\u79fb\u52d5<\/p>\n<p>ctrl + enter: \u73fe\u5728\u306e\u30bb\u30eb\u3092\u5b9f\u884c\u3057\u3001\u73fe\u5728\u306e\u30bb\u30eb\u306b\u7559\u307e\u308b<\/p>\n<p>a: \u73fe\u5728\u306e\u30bb\u30eb\u306e\u4e0a\u306b\u65b0\u3057\u3044\u30bb\u30eb\u3092\u8ffd\u52a0<\/p>\n<p>b: \u73fe\u5728\u306e\u30bb\u30eb\u306e\u4e0b\u306b\u65b0\u3057\u3044\u30bb\u30eb\u3092\u8ffd\u52a0<\/p>\n<p>m: \u73fe\u5728\u306e\u30bb\u30eb\u306e\u30bf\u30a4\u30d7\u3092markdown\u306b\u5909\u66f4<\/p>\n<p>y: \u73fe\u5728\u306e\u30bb\u30eb\u306e\u30bf\u30a4\u30d7\u3092code\u306b\u5909\u66f4<\/p>\n<p>d\u3001d\uff08d\u30922\u56de\u62bc\u3059\uff09: \u73fe\u5728\u306e\u30bb\u30eb\u3092\u524a\u9664<\/p>\n<p>shift + tab: \u95a2\u6570\u3084\u30e1\u30bd\u30c3\u30c9\u306e\u6700\u521d\u306e\u30ab\u30c3\u30b3\u306e\u524d\u3067\u62bc\u3059\u3068\u3001\u30c4\u30fc\u30eb\u30c1\u30c3\u30d7\u304c\u8868\u793a<\/p>\n<p>ctrl + shift + -\uff08\u30cf\u30a4\u30d5\u30f3\uff09: \u30ab\u30fc\u30bd\u30eb\u306e\u4f4d\u7f6e\u3067\u30bb\u30eb\u3092\u5206\u5272<\/p>\n<h3>\u30de\u30fc\u30af\u30c0\u30a6\u30f3\u30bb\u30eb\u306e\u4f7f\u3044\u65b9\uff1a\u898b\u3084\u3059\u304f\u6574\u5f62\u3057\u305f\u6587\u7ae0\u306e\u4f5c\u6210<\/h3>\n<p>\u30de\u30fc\u30af\u30c0\u30a6\u30f3\u30bb\u30eb\u306f\u3001\u30c6\u30ad\u30b9\u30c8\u3084\u30de\u30fc\u30af\u30c0\u30a6\u30f3\u5f62\u5f0f\u306e\u6587\u7ae0\u3092\u8a18\u8ff0\u3059\u308b\u305f\u3081\u306e\u30bb\u30eb\u3067\u3059\u3002\u30de\u30fc\u30af\u30c0\u30a6\u30f3\u30bb\u30eb\u3067\u306f\u3001html\u3084latex\u3068\u3044\u3063\u305f\u30de\u30fc\u30af\u30a2\u30c3\u30d7\u8a00\u8a9e\u3084\u6570\u5f0f\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30de\u30fc\u30af\u30c0\u30a6\u30f3\u30bb\u30eb\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u69d8\u3005\u306a\u88c5\u98fe\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u898b\u51fa\u3057: #\uff08\u30b7\u30e3\u30fc\u30d7\uff09\u3092\u4f7f\u7528\u3057\u3066\u898b\u51fa\u3057\u3092\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002#\u306e\u6570\u3092\u5897\u3084\u3059\u3068\u3001\u898b\u51fa\u3057\u306e\u30ec\u30d9\u30eb\u304c\u4e0b\u304c\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001##\u306f2\u756a\u76ee\u306e\u30ec\u30d9\u30eb\u306e\u898b\u51fa\u3057\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u5f37\u8abf: *\uff08\u30a2\u30b9\u30bf\u30ea\u30b9\u30af\uff09\u307e\u305f\u306f_\uff08\u30a2\u30f3\u30c0\u30fc\u30b9\u30b3\u30a2\uff09\u3067\u56f2\u3080\u3053\u3068\u3067\u3001\u30c6\u30ad\u30b9\u30c8\u3092\u5f37\u8abf\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u5358\u4e00\u306e*\u3084_\u306f\u659c\u4f53\u30012\u3064\u306e*\u3084_\u306f\u592a\u5b57\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30ea\u30b9\u30c8: -\u30841.\u3092\u4f7f\u3063\u3066\u30ea\u30b9\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u753b\u50cf: ![\u30c6\u30ad\u30b9\u30c8](\u753b\u50cf\u306eurl)\u3068\u8a18\u8ff0\u3059\u308b\u3053\u3068\u3067\u3001\u753b\u50cf\u3092\u633f\u5165\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u753b\u50cf\u306e\u30b5\u30a4\u30ba\u3084\u914d\u7f6e\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306b\u3001\u30de\u30fc\u30af\u30c0\u30a6\u30f3\u30bb\u30eb\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gh\"># \u3053\u308c\u306f\u30de\u30fc\u30af\u30c0\u30a6\u30f3\u306e\u30bb\u30eb\u3067\u3059<\/span>\r\n\r\n\u3053\u308c\u306f\u6bb5\u843d\u306e\u30c6\u30ad\u30b9\u30c8\u3067\u3059\u3002<span class=\"gs\">**\u592a\u5b57**<\/span>\u3084<span class=\"ge\">*\u659c\u4f53*<\/span>\u3068\u3044\u3063\u305f\u88c5\u98fe\u3082\u53ef\u80fd\u3067\u3059\u3002\r\n\r\n\u30ea\u30b9\u30c8\u3082\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\r\n<span class=\"p\">-<\/span> \u30ea\u30b9\u30c81\r\n<span class=\"p\">-<\/span> \u30ea\u30b9\u30c82\r\n<span class=\"p\">-<\/span> \u30ea\u30b9\u30c83\r\n\r\n\u753b\u50cf\u3082\u633f\u5165\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\r\n<span class=\"p\">![<\/span><span class=\"nv\">google colab<\/span><span class=\"p\">](<\/span><span class=\"sx\">https:\/\/colab.research.google.com\/assets\/colab-badge.svg<\/span><span class=\"p\">)<\/span>\r\n<\/code><\/pre>\n<h3>\u30b0\u30e9\u30d5\u306e\u63cf\u753b\u65b9\u6cd5\uff1amatplotlib\u3092\u4f7f\u3063\u305f\u53ef\u8996\u5316<\/h3>\n<p>jupyter notebook\u3067\u306f\u3001\u30b0\u30e9\u30d5\u306e\u63cf\u753b\u306b\u3082\u4fbf\u5229\u306a\u30c4\u30fc\u30eb\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u7279\u306b\u3001python\u306e\u6a19\u6e96\u7684\u306a\u53ef\u8996\u5316\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3042\u308bmatplotlib\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30c7\u30fc\u30bf\u306e\u53ef\u8996\u5316\u3092\u7c21\u5358\u306b\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001matplotlib\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3092\u8aac\u660e\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u7c21\u5358\u306a\u6298\u308c\u7dda\u30b0\u30e9\u30d5\u304c\u63cf\u753b\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"kn\">import<\/span> <span class=\"n\">matplotlib.pyplot<\/span> <span class=\"k\">as<\/span> <span class=\"n\">plt<\/span>\r\n\r\n<span class=\"c1\"># \u30c7\u30fc\u30bf\u306e\u6e96\u5099\r\n<\/span><span class=\"n\">x<\/span> <span class=\"o\">=<\/span> <span class=\"p\">[<\/span><span class=\"mi\">1<\/span><span class=\"p\">,<\/span> <span class=\"mi\">2<\/span><span class=\"p\">,<\/span> <span class=\"mi\">3<\/span><span class=\"p\">,<\/span> <span class=\"mi\">4<\/span><span class=\"p\">,<\/span> <span class=\"mi\">5<\/span><span class=\"p\">]<\/span>\r\n<span class=\"n\">y<\/span> <span class=\"o\">=<\/span> <span class=\"p\">[<\/span><span class=\"mi\">2<\/span><span class=\"p\">,<\/span> <span class=\"mi\">4<\/span><span class=\"p\">,<\/span> <span class=\"mi\">6<\/span><span class=\"p\">,<\/span> <span class=\"mi\">8<\/span><span class=\"p\">,<\/span> <span class=\"mi\">10<\/span><span class=\"p\">]<\/span>\r\n\r\n<span class=\"c1\"># \u6298\u308c\u7dda\u30b0\u30e9\u30d5\u306e\u63cf\u753b\r\n<\/span><span class=\"n\">plt<\/span><span class=\"p\">.<\/span><span class=\"nf\">plot<\/span><span class=\"p\">(<\/span><span class=\"n\">x<\/span><span class=\"p\">,<\/span> <span class=\"n\">y<\/span><span class=\"p\">)<\/span>\r\n\r\n<span class=\"c1\"># \u30b0\u30e9\u30d5\u306e\u30bf\u30a4\u30c8\u30eb\u3068\u8ef8\u30e9\u30d9\u30eb\u3092\u8a2d\u5b9a\r\n<\/span><span class=\"n\">plt<\/span><span class=\"p\">.<\/span><span class=\"nf\">title<\/span><span class=\"p\">(<\/span><span class=\"sh\">\"<\/span><span class=\"s\">sample line graph<\/span><span class=\"sh\">\"<\/span><span class=\"p\">)<\/span>\r\n<span class=\"n\">plt<\/span><span class=\"p\">.<\/span><span class=\"nf\">xlabel<\/span><span class=\"p\">(<\/span><span class=\"sh\">\"<\/span><span class=\"s\">x-axis<\/span><span class=\"sh\">\"<\/span><span class=\"p\">)<\/span>\r\n<span class=\"n\">plt<\/span><span class=\"p\">.<\/span><span class=\"nf\">ylabel<\/span><span class=\"p\">(<\/span><span class=\"sh\">\"<\/span><span class=\"s\">y-axis<\/span><span class=\"sh\">\"<\/span><span class=\"p\">)<\/span>\r\n\r\n<span class=\"c1\"># \u30b0\u30e9\u30d5\u306e\u8868\u793a\r\n<\/span><span class=\"n\">plt<\/span><span class=\"p\">.<\/span><span class=\"nf\">show<\/span><span class=\"p\">()<\/span>\r\n<\/code><\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u30c7\u30fc\u30bf\u3092\u7528\u610f\u3057\u3066plt.plot()\u95a2\u6570\u3067\u30b0\u30e9\u30d5\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002plt.title()\u3084plt.xlabel()\u3001plt.ylabel()\u306a\u3069\u306e\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u30b0\u30e9\u30d5\u306e\u30bf\u30a4\u30c8\u30eb\u3084\u8ef8\u30e9\u30d9\u30eb\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u6700\u5f8c\u306bplt.show()\u95a2\u6570\u3092\u4f7f\u3063\u3066\u30b0\u30e9\u30d5\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<h3>notebook\u306e\u5171\u6709\u65b9\u6cd5\uff1agithub\u3084google\u30c9\u30e9\u30a4\u30d6\u3067\u306e\u5171\u6709\u65b9\u6cd5<\/h3>\n<p>jupyter notebook\u306enotebook\u30d5\u30a1\u30a4\u30eb\u306f\u3001github\u3084google\u30c9\u30e9\u30a4\u30d6\u3092\u4f7f\u3063\u3066\u7c21\u5358\u306b\u5171\u6709\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h4>github\u3067\u306e\u5171\u6709\u65b9\u6cd5<\/h4>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306bnotebook\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u30ea\u30dd\u30b8\u30c8\u30ea\u306eurl\u3092\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>nbviewer\u306a\u3069\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u4f7f\u3063\u3066\u3001notebook\u30d5\u30a1\u30a4\u30eb\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<h4>google\u30c9\u30e9\u30a4\u30d6\u3067\u306e\u5171\u6709\u65b9\u6cd5<\/h4>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>google\u30c9\u30e9\u30a4\u30d6\u306bnotebook\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u5171\u6709\u3057\u305f\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e\u3057\u3001\u53f3\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\u300c\u5171\u6709\u300d\u3092\u9078\u629e\u3057\u3001\u5171\u6709\u30ea\u30f3\u30af\u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/ol>\n<p>\u4ee5\u4e0a\u306e\u65b9\u6cd5\u3067\u3001jupyter notebook\u306enotebook\u30d5\u30a1\u30a4\u30eb\u3092\u7c21\u5358\u306b\u5171\u6709\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u3068\u3081\u308b\u3068\u3001\u521d\u5fc3\u8005\u30a8\u30f3\u30b8\u30cb\u30a2\u5411\u3051\u306bgoogle colaboratory\uff08colab\uff09\u306e\u57fa\u672c\u64cd\u4f5c\u3068\u4f7f\u3044\u65b9\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002colab\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u304b\u3089\u3001\u30bb\u30eb\u306e\u7a2e\u985e\u3084\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u30ad\u30fc\u3001\u30de\u30fc\u30af\u30c0\u30a6\u30f3\u30bb\u30eb\u306e\u4f7f\u3044\u65b9\u3001\u30b0\u30e9\u30d5\u306e\u63cf\u753b\u65b9\u6cd5\u3001\u305d\u3057\u3066notebook\u306e\u5171\u6709\u65b9\u6cd5\u307e\u3067\u3092\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002colab\u306f\u4f7f\u3044\u3084\u3059\u304f\u3001google\u306e\u30a4\u30f3\u30d5\u30e9\u30b9\u30c8\u30e9\u30af\u30c1\u30e3\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u9ad8\u901f\u306a\u51e6\u7406\u3084\u5927\u898f\u6a21\u306a\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u51e6\u7406\u3082\u884c\u3048\u307e\u3059\u3002\u3053\u308c\u304b\u3089colab\u3092\u4f7f\u3063\u3066python\u306e\u958b\u767a\u3084\u30c7\u30fc\u30bf\u89e3\u6790\u3092\u59cb\u3081\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3010\u53c2\u8003\u8cc7\u6599\u3011<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">colab \u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">google colab\u3067python\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u306f\u3058\u3081\u3088\u3046<\/ul>\n<h2>\u3010Google Colaboratory\u3011\u307e\u3068\u3081<\/h2>\n<p>&nbsp;<\/p>\n<h2>\u30aa\u30f3\u30e9\u30a4\u30f3\u30b9\u30af\u30fc\u30eb\u3092\u8b1b\u5e2b\u3068\u3057\u3066\u6d3b\u7528\u3059\u308b\uff01<\/h2>\n<p>&nbsp;<\/p>\n<h2>0\u5186\u3067\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3076\u3068\u3044\u3046\u9078\u629e<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">techacademy\u306e\u7121\u6599\u4f53\u9a13<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30aa\u30f3\u30e9\u30a4\u30f3\u30b9\u30af\u30fc\u30eb dmm webcamp pro<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30ec\u30d0\u30c6\u30c3\u30af\u30ab\u30ec\u30c3\u30b8\uff5c\u5927\u5b66\u751f\u5411\u3051 \u7121\u6599\u8aac\u660e\u4f1a<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u3010google colaboratory\u3011\u5165\u9580\uff1ajupyter notebook\u306e\u57fa\u672c\u64cd\u4f5c\u3068\u4f7f\u3044\u65b9 \u3053\u3093\u306b\u3061\u306f [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-46094","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>- Blog - Silicon Cloud<\/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:\/\/www.silicloud.com\/zh\/blog\/46094-2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:description\" content=\"\u3010google colaboratory\u3011\u5165\u9580\uff1ajupyter notebook\u306e\u57fa\u672c\u64cd\u4f5c\u3068\u4f7f\u3044\u65b9 \u3053\u3093\u306b\u3061\u306f [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/46094-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-26T18:07:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T00:01:33+00:00\" \/>\n<meta name=\"author\" content=\"\u97f5, \u79d1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u97f5, \u79d1\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/46094-2\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/46094-2\/\",\"name\":\"- Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-11-26T18:07:05+00:00\",\"dateModified\":\"2024-04-29T00:01:33+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/46094-2\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\",\"name\":\"\u97f5, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"caption\":\"\u97f5, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/46094-2\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"- Blog - Silicon Cloud","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:\/\/www.silicloud.com\/zh\/blog\/46094-2\/","og_locale":"zh_CN","og_type":"article","og_description":"\u3010google colaboratory\u3011\u5165\u9580\uff1ajupyter notebook\u306e\u57fa\u672c\u64cd\u4f5c\u3068\u4f7f\u3044\u65b9 \u3053\u3093\u306b\u3061\u306f [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/46094-2\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-11-26T18:07:05+00:00","article_modified_time":"2024-04-29T00:01:33+00:00","author":"\u97f5, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u97f5, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/46094-2\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/46094-2\/","name":"- Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-11-26T18:07:05+00:00","dateModified":"2024-04-29T00:01:33+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/46094-2\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e","name":"\u97f5, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","caption":"\u97f5, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/46094-2\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/46094","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=46094"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/46094\/revisions"}],"predecessor-version":[{"id":84031,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/46094\/revisions\/84031"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=46094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=46094"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=46094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}