{"id":46256,"date":"2023-03-17T14:01:40","date_gmt":"2023-10-21T00:53:09","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/46256-2\/"},"modified":"2024-04-29T19:17:16","modified_gmt":"2024-04-29T11:17:16","slug":"46256-2","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/46256-2\/","title":{"rendered":""},"content":{"rendered":"<p>\u307f\u306a\u3055\u3093\u3001\u3088\u3044Python\u751f\u6d3b\u9001\u308c\u3066\u3044\u307e\u3059\u3067\u3057\u3087\u3046\u304b?<\/p>\n<p>\u3044\u304d\u306a\u308a\u3067\u3059\u304c\u3001\u666e\u6bb5Python\u306e\u30b3\u30fc\u30c9\u3092\u6271\u3046\u969b\u3001\u3069\u306e\u3088\u3046\u306b\u6271\u3063\u3066\u3044\u307e\u3059\u304b?<\/p>\n<p>\u666e\u901a\u306b.py\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u52d5\u304b\u3057\u305f\u308a\u3001\u3082\u3057\u304f\u306fJupyter Notebook\u3084Jupyter Lab\u306a\u3069\u3092\u4f7f\u3063\u3066\u30b3\u30fc\u30c9\u30d6\u30ed\u30c3\u30af\u306b\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u30d6\u30ed\u30c3\u30af\u3054\u3068\u306b\u5b9f\u884c\u3057\u3066\u3044\u304f\u3001\u3068\u3044\u3046\u4eba\u3082\u591a\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u81ea\u5206\u306f\u5927\u5b66\u306e\u6388\u696d\u3067\u914d\u5e03\u3055\u308c\u3066\u3044\u308bPython\u30b3\u30fc\u30c9\u306e\u8cc7\u6599\u304cJupyter\u3067\u6271\u3048\u308b.ipynb\u5f62\u5f0f\u306e\u30d5\u30a1\u30a4\u30eb\u306a\u306e\u3067\u3001\u4eca\u307e\u3067\u306fJupyter Notebook\u3092\u4f7f\u3063\u3066\u30b3\u30fc\u30c9\u3092\u95b2\u89a7\u30fb\u5b9f\u884c\u7b49\u884c\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u307f\u306a\u3055\u3093\u3001Jupyter Notebook\u3092\u7acb\u3061\u4e0a\u3052\u3066\u30d6\u30e9\u30a6\u30b6\u306e\u30bf\u30d61, 2\u500b\u53d6\u3089\u308c\u308b\u306e\u3001\u306a\u3093\u304b\u5acc\u3058\u3083\u306a\u3044\u3067\u3059\u304b? \u7279\u306bChrome\u30e6\u30fc\u30b6\u30fc\u306e\u65b9\u306f\u305d\u306e\u3088\u3046\u306b\u601d\u3046\u65b9\u3082\u591a\u3044\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b?<\/p>\n<p>\u81ea\u5206\u3082\u4ee5\u524d\u3001\u305d\u306e\u3088\u3046\u306a\u8003\u3048\u304b\u3089\u3001Microsoft\u306eVisual Studio Code (VS Code)\u3092\u4f7f\u3063\u3066.ipynb\u30d5\u30a1\u30a4\u30eb\u3092\u6271\u3046\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u304c&#8230;.\u6b63\u76f4\u6271\u3044\u3065\u3089\u3044\u3002\u30ab\u30fc\u30cd\u30eb\u306e\u518d\u8d77\u52d5\u3084\u5f37\u5236\u7d42\u4e86\u306a\u3069\u3001\u76f4\u611f\u7684\u306b\u884c\u306a\u3048\u307e\u305b\u3093\u3002 (\u3061\u306a\u307f\u306b\u6700\u8fd1\u77e5\u3063\u305f\u3093\u3067\u3059\u304c\u3001VS Code\u3067\u306f\u30d5\u30a1\u30a4\u30eb\u3092\u9589\u3058\u308b\u3068\u30ab\u30fc\u30cd\u30eb\u7d42\u4e86\u3089\u3057\u3044\u3067\u3059)<\/p>\n<p>\u306a\u306e\u3067\u3001\u81ea\u5206\u306e\u5834\u5408\u306f\u3001\u6700\u521d\u306fJupyter Notebook\u3067\u2192\u8a66\u3057\u306bVS Code\u3067.ipynb\u3092\u958b\u304f\u2192\u3084\u3063\u3071\u308aJupyter Notebook\u306b\u623b\u308b\u3001\u3068\u3044\u3046\u5f62\u3067\u7d50\u5c40\u306fJupyter Notebook\u3092\u4f7f\u3044\u7d9a\u3051\u3066\u3044\u307e\u3057\u305f\u3002 (Jupyter Lab\u306f\u306a\u3093\u304bUI\u6163\u308c\u306a\u3044\u3093\u3067\u500b\u4eba\u7684\u306b\u4f7f\u3063\u3066\u307e\u305b\u3093\u3067\u3057\u305f)<\/p>\n<p>\u3057\u304b\u3057\u3001\u3075\u3068\u3057\u305f\u6642\u306bMicrosoft\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u898b\u3066\u3044\u305f\u3089\u3001\u9762\u767d\u3044\u3082\u306e\u3092\u898b\u3064\u3051\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002\u79c1\u306fPython\u521d\u5fc3\u8005\u306a\u306e\u3067\u3001\u300c\u305d\u308c\u524d\u304b\u3089\u3042\u308b\u3057\uff01\u300d\u3068\u3044\u3046\u65b9\u304c\u3044\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001VS Code\u3067\u306f.py\u30d5\u30a1\u30a4\u30eb\u3067Jupyter\u306e\u3088\u3046\u306a\u5f62\u3067\u30b3\u30fc\u30c9\u3092\u89e6\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3053\u3068\u3092\u77e5\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u3053\u3067\u3001\u300c\u305d\u306e\u6a5f\u80fd\u77e5\u3063\u3066\u308b\u3057\uff01\u524d\u304b\u3089\u3042\u3063\u305f\u3057\uff01\u300d\u3068\u3044\u3046\u65b9\u306f\u30d6\u30e9\u30a6\u30b6\u30d0\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044&#8230;\u3067\u3001\u305d\u3046\u3067\u306a\u3044\u65b9\u306f\u305c\u3072\u6700\u5f8c\u307e\u3067\u3054\u89a7\u3044\u305f\u3060\u3051\u308b\u3068\u5e78\u3044\u3067\u3059\u3002 (\u3088\u3051\u308c\u3070LGTM\u3057\u3066\u3044\u305f\u3060\u3051\u308b\u3068\u5b09\u3057\u3044\u3067\u3059!)<\/p>\n<hr \/>\n<h1>\u3069\u3046\u3044\u3046\u6a5f\u80fd\u306a\u306e\u304b<\/h1>\n<p>\u4ee5\u4e0b\u306fMicrosoft\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u305f\u753b\u50cf\u306a\u306e\u3067\u3059\u304c\u3001.py\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\u3057\u3066\u3044\u305f\u3060\u3044\u3066\u3001\u305d\u3053\u3067\u6700\u521d\u306e\u884c\u306b#%%\u3068\u66f8\u304d\u307e\u3059\u3002\u3053\u308c\u304cJupyter\u3067\u8a00\u3046\u30b3\u30fc\u30c9\u30d6\u30ed\u30c3\u30af\u306e\u982d\u3060\u3088\u3001\u3068\u3044\u3046\u5ba3\u8a00\u306b\u306a\u3063\u3066\u3001\u305d\u306e\u4e0b\u306b\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3068\u305d\u3053\u304c\u307e\u308b\u30671\u3064\u306e\u30b3\u30fc\u30c9\u30d6\u30ed\u30c3\u30af\u306e\u3088\u3046\u306bVS Code\u4e0a\u3067\u52d5\u4f5c\u3057\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d63cd37434c4406d02ecf\/12-0.png\" alt=\"Microsoft\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u304b\u3089\u5f15\u7528\" \/><\/div>\n<p>\u901a\u5e38\u306f\u4e0b\u306e\u753b\u50cf\u306e\u3088\u3046\u306b\u3001\u30b3\u30fc\u30c9\u30d6\u30ed\u30c3\u30af\u304c\u3042\u3063\u3066\u305d\u3053\u306b\u66f8\u304d\u8fbc\u3093\u3067\u3044\u3063\u3066\u5b9f\u884c\u3059\u308b\u30b9\u30bf\u30a4\u30eb\u306a\u306e\u3067\u3059\u304c\u3001\u305d\u308c\u3068\u540c\u3058\u3053\u3068\u304c.py\u30d5\u30a1\u30a4\u30eb\u306b\u304a\u3044\u3066\u3082\u3067\u304d\u308b\u3001\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d63cd37434c4406d02ecf\/14-0.png\" alt=\"Microsoft\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u304b\u3089\u5f15\u7528\" \/><\/div>\n<h1>\u3053\u306e\u6a5f\u80fd\u306e\u30e1\u30ea\u30c3\u30c8<\/h1>\n<p>\u500b\u4eba\u7684\u306b\u306f\u30e1\u30ea\u30c3\u30c8\u3057\u304b\u306a\u3044\u3068\u611f\u3058\u3066\u3044\u307e\u3059(\u7b11)<\/p>\n<h2>\u30e1\u30ea\u30c3\u30c8 1: .py\u30d5\u30a1\u30a4\u30eb\u306b\u3059\u308b\u3053\u3068\u3067\u30d5\u30a1\u30a4\u30eb\u7ba1\u7406\u304c\u697d<\/h2>\n<p>\u307e\u305a\u3001.py\u30d5\u30a1\u30a4\u30eb\u306b\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u3001Git\u30b7\u30b9\u30c6\u30e0\u4e0a\u3067\u306e\u7ba1\u7406\u304c\u697d\u306b\u306a\u308a\u307e\u3059\u3002.ipynb\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u5408\u306f\u3001\u4e2d\u8eab\u304cJSON\u306e\u3088\u3046\u306a\u914d\u5217\u306b\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u3001Git\u4e0a\u3067\u5dee\u5206\u78ba\u8a8d\u7b49\u304c\u975e\u5e38\u306b\u3057\u305a\u3089\u3044\u3067\u3059\u3002\u305d\u306e\u305b\u3044\u3067\u4e2d\u8eab\u306e\u914d\u5217\u304c\u7834\u640d\u3057\u3066\u3057\u307e\u3044\u3001.ipynb\u30d5\u30a1\u30a4\u30eb\u304c\u5168\u304f\u958b\u3051\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u3053\u3068\u3082\u4f55\u5ea6\u304b\u3042\u308a\u307e\u3057\u305f (\u81ea\u5df1\u5fa9\u65e7\u3055\u305b\u307e\u3057\u305f\u304c)\u3002\u306a\u306e\u3067\u3001\u4e2d\u8eab\u304c\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3060\u3051\u3057\u304b\u5165\u3063\u3066\u306a\u3044\u3001\u5358\u7d14\u306a\u5185\u5bb9\u306b\u306a\u3063\u3066\u3044\u308b.py\u30d5\u30a1\u30a4\u30eb\u306f\u305d\u3046\u3044\u3046\u6642\u306e\u7ba1\u7406\u304c\u697d\u306a\u305f\u3081\u3001Git\u30e6\u30fc\u30b6\u30fc\u306f.py\u3067\u7ba1\u7406\u3059\u308b\u65b9\u304c\u3088\u3044\u304b\u3068\u500b\u4eba\u7684\u306b\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u4e0a\u8a18\u306e\u70b9\u304b\u3089\u3001\u308f\u3056\u308f\u3056Jupyter\u74b0\u5883\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304b\u306a\u304f\u3066\u3082\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304c\u95b2\u89a7\u3067\u304d\u308b\u305f\u3081\u3001Slack\u3067\u3053\u306e\u90e8\u5206\u3060\u3051\u30b3\u30fc\u30c9\u3092\u5171\u6709\u3057\u305f\u3044\u3001\u3068\u3044\u3046\u5834\u5408\u3067\u3082\u3059\u3070\u3084\u304f\u5171\u6709\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30e1\u30ea\u30c3\u30c8 2: .ipynb_checkpoints\u304c\u751f\u6210\u3055\u308c\u306a\u3044<\/h2>\n<p>\u5730\u5473\u306b\u5384\u4ecb\u306a\u3082\u306e\u304c\u3053\u306e.ipynb_checkpoints\u3060\u3068\u601d\u3044\u307e\u3059\u3002\u3053\u306e\u30d5\u30a9\u30eb\u30c0\u306f.ipynb\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u3059\u308b\u969b\u306b\u3001Jupyter Notebook\u306a\u3069\u3067\u306f\u81ea\u52d5\u4fdd\u5b58\u6a5f\u80fd\u304c\u304b\u304b\u3063\u3066\u4e00\u6642\u7684\u306a\u5b9f\u884c\u72b6\u614b\u304c\u4fdd\u5b58\u3055\u308c\u308b\u306e\u3067\u3059\u304c\u3001\u305d\u306e\u884c\u304d\u5148\u304c\u3053\u306e.ipynb_checkpoints\u30d5\u30a9\u30eb\u30c0\u3067\u3059\u3002\u7279\u306b\u6a5f\u68b0\u5b66\u7fd2\u306a\u3069\u3067\u30d5\u30a9\u30eb\u30c0\u304b\u3089\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u3063\u3066\u304f\u308b\u3001\u3068\u3044\u3063\u305f\u969b\u306b.ipynb_checkpoints\u304c\u3042\u308b\u3068\u8aa4\u52d5\u4f5c\u3092\u8d77\u3053\u3059\u53ef\u80fd\u6027\u304c\u3042\u308a\u3001\u7d30\u5fc3\u306e\u6ce8\u610f\u3092\u6255\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u304c\u751f\u6210\u3055\u308c\u306a\u3044\u306e\u306f\u3001\u7279\u306b\u6a5f\u68b0\u5b66\u7fd2\u306a\u3069\u306e\u30b3\u30fc\u30c9\u3092\u89e6\u3063\u3066\u3044\u308b\u65b9\u306b\u3068\u3063\u3066\u306f\u5229\u70b9\u3057\u304b\u306a\u3044\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b?<\/p>\n<h2>\u30e1\u30ea\u30c3\u30c8 3: \u30ec\u30b9\u30dd\u30f3\u30b9\u304c\u65e9\u3044<\/h2>\n<p>VS Code\u3067.ipynb\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u969b\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e\u3057\u3066\u304b\u3089\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3093\u3067\u30b3\u30fc\u30c9\u30d6\u30ed\u30c3\u30af\u72b6\u306b\u306a\u3063\u305f\u3082\u306e\u304c\u8868\u793a\u3055\u308c\u308b\u307e\u3067\u304b\u306a\u308a\u6642\u9593\u304c\u304b\u304b\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u5bfe\u3057\u3066\u3001Jupyter Notebook\u306e\u5834\u5408\u3067\u3082\u3001VS Code\u3067.py\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u5834\u5408\u3067\u3082\u3001\u3053\u306e\u958b\u304f\u969b\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u306f\u975e\u5e38\u306b\u65e9\u3044\u306e\u3067VS Code\u3067.ipynb\u3092\u6271\u3046\u3053\u3068\u306b\u5bfe\u3057\u3066\u30cf\u30fc\u30c9\u30eb\u3092\u611f\u3058\u3066\u3044\u308b\u65b9\u3082\u591a\u3044\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u307e\u305f\u3001\u500b\u4eba\u7684\u306b\u4f7f\u3063\u3066\u3044\u308b\u969b\u3001VS Code\u3067.ipynb\u3092\u4f7f\u3046\u3068\u30d5\u30ea\u30fc\u30ba\u3057\u3066\u3057\u307e\u3063\u305f\u308a\u3001\u5b9f\u884c\u72b6\u6cc1\u304c\u308f\u304b\u3089\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u3053\u3068\u306a\u3069\u304c\u305f\u307e\u306b\u767a\u751f\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u73fe\u5728\u306f (\u30e1\u30ea\u30c3\u30c84\u306e\u304a\u304b\u3052\u3082\u3042\u308a\u307e\u3059\u304c)\u305d\u306e\u3088\u3046\u306a\u3053\u3068\u306f\u767a\u751f\u3057\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u304c\u65e9\u304f\u3001\u5b89\u5b9a\u3057\u3066\u3044\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30e1\u30ea\u30c3\u30c8 4: \u30ab\u30fc\u30cd\u30eb\u306e\u518d\u8d77\u52d5\u30fb\u7d42\u4e86\u304c\u3057\u3084\u3059\u3044<\/h2>\n<p>\u4e00\u756a\u6700\u521d\u306b\u51fa\u3057\u305f\u753b\u50cf\u3092\u3082\u3046\u4e00\u5ea6\u3054\u89a7\u3044\u305f\u3060\u304f\u3068\u308f\u304b\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u3053\u306e\u6a5f\u80fd\u3092\u4f7f\u3063\u305f\u5834\u5408\u3001\u5b9f\u884c\u7d50\u679c\u306f\u53f3\u306e\u5225\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u51fa\u529b\u3055\u308c\u307e\u3059\u3002\u5b9f\u8cea\u305d\u3053\u304cJupyter\u74b0\u5883\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u4eca\u307e\u3067\u306f\u30ab\u30fc\u30cd\u30eb\u306e\u518d\u8d77\u52d5\u30fb\u7d42\u4e86\u3092\u884c\u3044\u305f\u3044\u5834\u5408\u3001.ipynb\u30d5\u30a1\u30a4\u30eb\u3092\u4e00\u56de\u4fdd\u5b58\u3057\u3066\u304b\u3089\u9589\u3058\u3066\u3001\u3082\u3046\u4e00\u5ea6\u958b\u304b\u306a\u3051\u308c\u3070\u3044\u3051\u307e\u305b\u3093\u3002\u307e\u305f\u3001\u3055\u304d\u307b\u3069\u30e1\u30ea\u30c3\u30c83\u3067\u8ff0\u3079\u305f\u3088\u3046\u306b\u3001.ipynb\u3092\u958b\u304f\u969b\u3001\u304b\u306a\u308a\u30ec\u30b9\u30dd\u30f3\u30b9\u304c\u9045\u304f\u3044\u3089\u3064\u3044\u3066\u3057\u307e\u3046\u3053\u3068\u3082\u3057\u3070\u3057\u3070&#8230;\u3067\u3059\u304c\u3001.py\u30d5\u30a1\u30a4\u30eb\u3067Jupyter\u74b0\u5883\u3092\u958b\u3051\u3070\u30ab\u30fc\u30cd\u30eb\u3092\u518d\u8d77\u52d5\u30fb\u7d42\u4e86\u3055\u305b\u305f\u3044\u5834\u5408\u306f\u53f3\u306eJupyter\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u9589\u3058\u308b\u3060\u3051! \u3060\u3044\u3076\u30b9\u30c8\u30ec\u30b9\u8efd\u6e1b\u3055\u308c\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30e1\u30ea\u30c3\u30c8 5: Jupyter\u3068\u540c\u3058\u6a5f\u80fd\u306f\u305d\u308c\u3067\u3082\u4f7f\u3048+\u03b1\u3067\u5f79\u7acb\u3064\u6a5f\u80fd\u3082\u4f7f\u3048\u308b<\/h2>\n<p>VS Code\u3067Jupyter\u30d5\u30a1\u30a4\u30eb\u3092\u6271\u3046\u3053\u3068\u306e\u30e1\u30ea\u30c3\u30c8\u3068\u3057\u3066\u306f\u3001\u5909\u6570\u306e\u683c\u7d0d\u72b6\u6cc1\u3092\u78ba\u8a8d\u3067\u304d\u308b\u3053\u3068\u3082\u4e00\u3064\u306e\u30e1\u30ea\u30c3\u30c8\u3067\u306f\u306a\u3044\u306e\u3067\u3057\u3087\u3046\u304b\u3002\u5730\u5473\u306b\u4fbf\u5229\u306a\u6a5f\u80fd\u3060\u3068\u601d\u3044\u307e\u3059\u304c\u3001.py\u3067Jupyter\u3092\u6271\u3046\u969b\u3082\u3001Jupyter\u30a6\u30a3\u30f3\u30c9\u30a6\u304b\u3089\u5909\u6570\u306e\u683c\u7d0d\u72b6\u6cc1\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001Jupyter\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u4e0b\u306e\u90e8\u5206\u306bType code here and press shift-enter to run\u3068\u3044\u3046\u30bb\u30af\u30b7\u30e7\u30f3\u304c\u3042\u308a\u3001\u3053\u3053\u3067\u4efb\u610f\u306e\u30b3\u30fc\u30c9\u3092\u3059\u3070\u3084\u304f\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002print\u6587\u306a\u3069\u3001\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304f\u307e\u3067\u3082\u306a\u3044\u3051\u3069\u72b6\u6cc1\u3092\u78ba\u8a8d\u3057\u305f\u3044\u5834\u5408\u306a\u3069\u306b\u4f7f\u3048\u308b\u306e\u3067\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<h2>\u30e1\u30ea\u30c3\u30c8 6: \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306e\u7ba1\u7406\u304c\u3057\u3084\u3059\u3044<\/h2>\n<p>\u3061\u3087\u3063\u3068\u9577\u304f\u306a\u3063\u3066\u304d\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u304c\u3001\u3082\u3046\u3057\u3070\u3089\u304f\u304a\u4ed8\u304d\u5408\u3044\u304f\u3060\u3055\u3044&#8230;<\/p>\n<p>VS Code\u306b\u306fWorkspace\u3068\u3044\u3046\u6a5f\u80fd\u304c\u3042\u308a\u3001\u3053\u308c\u306b\u3088\u3063\u3066\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306b\u74b0\u5883\u3084\u30b3\u30fc\u30c9\u3092\u7ba1\u7406\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Python\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u95a2\u3057\u3066\u3082\u540c\u69d8\u3067\u3001Python\u306e\u5b9f\u884c\u74b0\u5883\u3084\u30b3\u30fc\u30c9\u304c\u7f6e\u3044\u3066\u3042\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3001\u307e\u305f\u524d\u56de\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u3092\u958b\u3044\u3066\u3044\u305f\u3068\u304d\u306b\u958b\u3044\u3066\u3044\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u518d\u5ea6\u8868\u793a\u3057\u3066\u304f\u308c\u305f\u308a\u3068\u8907\u6570\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30921\u3064\u306e\u30d1\u30bd\u30b3\u30f3\u306b\u7f6e\u3044\u3066\u3044\u308b\u5834\u5408 (\u307b\u3068\u3093\u3069\u306e\u65b9\u304c\u305d\u3046\u3060\u3068\u601d\u3044\u307e\u3059\u304c)\u3001\u4fbf\u5229\u306a\u6a5f\u80fd\u3067\u3059\u3002\u307e\u305f\u3001Python\u306e\u5b9f\u884c\u74b0\u5883\u3082Workspace\u3054\u3068\u306b\u7ba1\u7406\u3067\u304d\u308b\u305f\u3081\u3001\u3068\u304f\u306bVirtualenv, Pipenv\u306a\u3069\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u65b9\u306b\u306f\u52a9\u304b\u308b\u6a5f\u80fd\u306a\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b?<\/p>\n<h2>\u30e1\u30ea\u30c3\u30c8 7: Chrome\u306e\u30bf\u30d6\u304c\u53d6\u3089\u308c\u306a\u3044!<\/h2>\n<p>\u3053\u308c\u306fChrome\u306e\u30d8\u30d3\u30fc\u30e6\u30fc\u30b6\u30fc\u306b\u3068\u3063\u3066\u306f\u975e\u5e38\u306b\u91cd\u8981\u3067\u3059\u306d&#8230; Jupyter Notebook\u306e\u30da\u30fc\u30b8\u306b\u30bf\u30d6\u304c\u3068\u3089\u308c\u305a\u3001\u30a2\u30a4\u30b3\u30f3\u304c\u307e\u305f\u66f4\u306b\u898b\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u306d\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d63cd37434c4406d02ecf\/34-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2021-01-04 194958.png\" \/><\/div>\n<p>\u3048\u3001\u30bf\u30d6\u591a\u3059\u304e\u3060\u3063\u3066? \u304d\u306e\u305b\u3044\u3067\u3059\u3088\u3001\u304d\u3063\u3068\u3002<\/p>\n<h2>\u30e1\u30ea\u30c3\u30c8 8: WSL\u3068\u306e\u89aa\u548c\u6027\u304c\u9ad8\u3044 (Windows\u30e6\u30fc\u30b6\u30fc\u306e\u307f)<\/h2>\n<p>\u6700\u5f8c\u306e\u30e1\u30ea\u30c3\u30c8\u3001WSL\u3068\u306e\u89aa\u548c\u6027\u3067\u3059\u3002Windows\u30e6\u30fc\u30b6\u30fc\u306e\u65b9\u306f\u6700\u8fd1\u76db\u308a\u4e0a\u304c\u3063\u3066\u308bWSL\u3001\u3082\u3046\u3054\u5b58\u77e5\u306e\u65b9\u3082\u591a\u3044\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b? Windows\u306e\u4e2d\u3067Ubuntu\u306a\u3069Linux\u74b0\u5883\u3092\u305f\u3066\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u975e\u5e38\u306b\u91cd\u5b9d\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306eWSL\u3001VS Code\u3067\u306f\u4fbf\u5229\u306b\u6271\u3048\u308b\u3088\u3046\u306b\u3001WSL\u5c02\u7528\u62e1\u5f35\u6a5f\u80fd\u306a\u308b\u3082\u306e\u304c\u51fa\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3092\u4f7f\u3046\u3053\u3068\u306b\u3088\u3063\u3066\u3001\u3088\u308a\u4fbf\u5229\u306bWSL\u74b0\u5883\u5185\u306ePython\u74b0\u5883\u3092\u64cd\u4f5c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u500b\u4eba\u7684\u306b\u306f\u3053\u306e\u62e1\u5f35\u6a5f\u80fd\u3001\u91cd\u8981\u3067\u3059\u3002<\/p>\n<h1>\u3053\u306e\u6a5f\u80fd\u306e\u30c7\u30e1\u30ea\u30c3\u30c8<\/h1>\n<p>\u4e00\u65b9\u3067\u30c7\u30e1\u30ea\u30c3\u30c8\u3082\u3042\u308b\u306e\u3067\u304d\u3061\u3093\u3068\u7d39\u4ecb\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30c7\u30e1\u30ea\u30c3\u30c8 1: \u5b9f\u884c\u7d50\u679c\u304c\u6b8b\u3089\u306a\u3044<\/h2>\n<p>\u30e1\u30ea\u30c3\u30c81\u3067\u8ff0\u3079\u305f\u3088\u3046\u306b\u3001.ipynb\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u306fJSON\u306e\u3088\u3046\u306a\u914d\u5217\u306e\u30c7\u30fc\u30bf\u304c\u5165\u3063\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001.py\u30d5\u30a1\u30a4\u30eb\u3068\u9055\u3044\u3001\u5b9f\u884c\u7d50\u679c\u3001\u3064\u307e\u308aprint\u6587\u3067\u51fa\u529b\u3055\u308c\u305f\u5185\u5bb9\u3084matplotlib\u306e\u753b\u50cf\u3001pandas\u306e\u8868\u306a\u3069\u304c\u305d\u306e\u307e\u307e\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u5b9f\u884c\u7d50\u679c\u3082\u542b\u3081\u3066\u8ab0\u304b\u3068\u5171\u6709\u3057\u305f\u3044\u3001\u3068\u3044\u3046\u5834\u5408\u306b\u306f.ipynb\u5f62\u5f0f\u306e\u30d5\u30a1\u30a4\u30eb\u3067\u6e21\u3059\u307b\u3046\u304c\u3044\u3044\u3067\u3059\u306d\u3002<\/p>\n<h1>\u307e\u3068\u3081<\/h1>\n<p>\u30c7\u30e1\u30ea\u30c3\u30c8\u30011\u3064\u3057\u304b\u601d\u3044\u3064\u304d\u307e\u305b\u3093\u3067\u3057\u305f&#8230; \u3057\u304b\u3057\u3001\u305d\u308c\u304f\u3089\u3044\u500b\u4eba\u7684\u306b\u306f\u3053\u306eVS Code\u3067.py\u30d5\u30a1\u30a4\u30eb\u3067Jupyter\u74b0\u5883\u3092\u4f7f\u3046\u3001\u3068\u3044\u3046\u3053\u306e\u6a5f\u80fd\u3001\u975e\u5e38\u306b\u671f\u5f85\u3057\u3066\u3044\u307e\u3059\u3002\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3082\u975e\u5e38\u306b\u304b\u3093\u305f\u3093 (\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\u3057\u3066#%%\u3092\u3064\u3051\u308b\u3060\u3051)\u306a\u306e\u3067\u3001\u307f\u306a\u3055\u3093\u3082\u305c\u3072\u3001\u8a66\u3057\u3066\u307f\u3066\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u307f\u306a\u3055\u3093\u3001\u3088\u3044Python\u751f\u6d3b\u9001\u308c\u3066\u3044\u307e\u3059\u3067\u3057\u3087\u3046\u304b? \u3044\u304d\u306a\u308a\u3067\u3059\u304c\u3001\u666e\u6bb5Python\u306e\u30b3\u30fc\u30c9\u3092\u6271\u3046\u969b\u3001\u3069\u306e [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-46256","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\/46256-2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:description\" content=\"\u307f\u306a\u3055\u3093\u3001\u3088\u3044Python\u751f\u6d3b\u9001\u308c\u3066\u3044\u307e\u3059\u3067\u3057\u3087\u3046\u304b? \u3044\u304d\u306a\u308a\u3067\u3059\u304c\u3001\u666e\u6bb5Python\u306e\u30b3\u30fc\u30c9\u3092\u6271\u3046\u969b\u3001\u3069\u306e [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/46256-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-21T00:53:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T11:17:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d63cd37434c4406d02ecf\/12-0.png\" \/>\n<meta name=\"author\" content=\"\u79d1, \u9896\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u79d1, \u9896\" \/>\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\/46256-2\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/46256-2\/\",\"name\":\"- Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-10-21T00:53:09+00:00\",\"dateModified\":\"2024-04-29T11:17:16+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/46256-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\/8ca01ba7f7362ad4edb7da206a12f29e\",\"name\":\"\u79d1, \u9896\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u9896\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/46256-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\/46256-2\/","og_locale":"zh_CN","og_type":"article","og_description":"\u307f\u306a\u3055\u3093\u3001\u3088\u3044Python\u751f\u6d3b\u9001\u308c\u3066\u3044\u307e\u3059\u3067\u3057\u3087\u3046\u304b? \u3044\u304d\u306a\u308a\u3067\u3059\u304c\u3001\u666e\u6bb5Python\u306e\u30b3\u30fc\u30c9\u3092\u6271\u3046\u969b\u3001\u3069\u306e [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/46256-2\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-10-21T00:53:09+00:00","article_modified_time":"2024-04-29T11:17:16+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d63cd37434c4406d02ecf\/12-0.png"}],"author":"\u79d1, \u9896","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u9896","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/46256-2\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/46256-2\/","name":"- Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-10-21T00:53:09+00:00","dateModified":"2024-04-29T11:17:16+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/46256-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\/8ca01ba7f7362ad4edb7da206a12f29e","name":"\u79d1, \u9896","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","caption":"\u79d1, \u9896"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/46256-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\/46256","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\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=46256"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/46256\/revisions"}],"predecessor-version":[{"id":87138,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/46256\/revisions\/87138"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=46256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=46256"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=46256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}