|
@@ -11,7 +11,6 @@
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- "attachments": {},
|
|
|
"cell_type": "markdown",
|
|
|
"metadata": {},
|
|
|
"source": [
|
|
@@ -93,15 +92,143 @@
|
|
|
},
|
|
|
{
|
|
|
"cell_type": "code",
|
|
|
- "execution_count": null,
|
|
|
+ "execution_count": 2,
|
|
|
"metadata": {},
|
|
|
- "outputs": [],
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "data": {
|
|
|
+ "image/svg+xml": [
|
|
|
+ "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:inkspace=\"http://www.inkscape.org/namespaces/inkscape\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 946 595\">\n",
|
|
|
+ " <defs id=\"defs_block\">\n",
|
|
|
+ " <filter height=\"1.504\" id=\"filter_blur\" inkspace:collect=\"always\" width=\"1.1575\" x=\"-0.07875\" y=\"-0.252\">\n",
|
|
|
+ " <feGaussianBlur id=\"feGaussianBlur3780\" inkspace:collect=\"always\" stdDeviation=\"4.2\"/>\n",
|
|
|
+ " </filter>\n",
|
|
|
+ " </defs>\n",
|
|
|
+ " <title>blockdiag</title>\n",
|
|
|
+ " <desc>\n",
|
|
|
+ " blockdiag {\n",
|
|
|
+ " node_width = 230;\n",
|
|
|
+ " node_height = 145;\n",
|
|
|
+ "\n",
|
|
|
+ " group {\n",
|
|
|
+ " orientation = portrait;\n",
|
|
|
+ " shape = line;\n",
|
|
|
+ " style = none;\n",
|
|
|
+ "\n",
|
|
|
+ " group {\n",
|
|
|
+ " shape = line;\n",
|
|
|
+ " style = none;\n",
|
|
|
+ " orientation = portrait;\n",
|
|
|
+ " group {\n",
|
|
|
+ " orientation = portrait;\n",
|
|
|
+ " color = "#ffeed9";\n",
|
|
|
+ " "0. 実験ワークフロー実行準備"[label = "0. 実験ワークフロー実行準備", fontsize = 14];\n",
|
|
|
+ " "required_every_time";\n",
|
|
|
+ " }\n",
|
|
|
+ " }\n",
|
|
|
+ "\n",
|
|
|
+ " group {\n",
|
|
|
+ " shape = line;\n",
|
|
|
+ " style = none;\n",
|
|
|
+ " orientation = portrait;\n",
|
|
|
+ " group {\n",
|
|
|
+ " orientation = portrait;\n",
|
|
|
+ " color = "#fcdcb1";\n",
|
|
|
+ " "1. 実験ワークフロー"[label = "1. 実験ワークフロー", fontsize = 14];\n",
|
|
|
+ " "enter_metadata";\n",
|
|
|
+ " "save";\n",
|
|
|
+ " "finish";\n",
|
|
|
+ " }\n",
|
|
|
+ " }\n",
|
|
|
+ " }\n",
|
|
|
+ "\n",
|
|
|
+ " "0. 実験ワークフロー実行準備" -> "1. 実験ワークフロー";\n",
|
|
|
+ " "enter_metadata","save" -> "finish";\n",
|
|
|
+ "\n",
|
|
|
+ " }\n",
|
|
|
+ "</desc>\n",
|
|
|
+ " <rect fill=\"rgb(255,238,217)\" height=\"165\" style=\"filter:url(#filter_blur)\" width=\"540\" x=\"56\" y=\"30\"/>\n",
|
|
|
+ " <rect fill=\"rgb(252,220,177)\" height=\"350\" style=\"filter:url(#filter_blur)\" width=\"834\" x=\"56\" y=\"215\"/>\n",
|
|
|
+ " <rect fill=\"rgb(0,0,0)\" height=\"145\" stroke=\"rgb(0,0,0)\" style=\"filter:url(#filter_blur);opacity:0.7;fill-opacity:1\" width=\"230\" x=\"67\" y=\"46\"/>\n",
|
|
|
+ " <rect fill=\"rgb(0,0,0)\" height=\"145\" stroke=\"rgb(0,0,0)\" style=\"filter:url(#filter_blur);opacity:0.7;fill-opacity:1\" width=\"230\" x=\"361\" y=\"46\"/>\n",
|
|
|
+ " <rect fill=\"rgb(0,0,0)\" height=\"145\" stroke=\"rgb(0,0,0)\" style=\"filter:url(#filter_blur);opacity:0.7;fill-opacity:1\" width=\"230\" x=\"67\" y=\"231\"/>\n",
|
|
|
+ " <rect fill=\"rgb(0,0,0)\" height=\"145\" stroke=\"rgb(0,0,0)\" style=\"filter:url(#filter_blur);opacity:0.7;fill-opacity:1\" width=\"230\" x=\"361\" y=\"231\"/>\n",
|
|
|
+ " <rect fill=\"rgb(0,0,0)\" height=\"145\" stroke=\"rgb(0,0,0)\" style=\"filter:url(#filter_blur);opacity:0.7;fill-opacity:1\" width=\"230\" x=\"655\" y=\"231\"/>\n",
|
|
|
+ " <rect fill=\"rgb(0,0,0)\" height=\"145\" stroke=\"rgb(0,0,0)\" style=\"filter:url(#filter_blur);opacity:0.7;fill-opacity:1\" width=\"230\" x=\"361\" y=\"416\"/>\n",
|
|
|
+ " <rect fill=\"rgb(255,255,255)\" height=\"145\" stroke=\"rgb(0,0,0)\" width=\"230\" x=\"64\" y=\"40\"/>\n",
|
|
|
+ " <text fill=\"rgb(0,0,0)\" font-family=\"sans-serif\" font-size=\"14\" font-style=\"normal\" font-weight=\"normal\" text-anchor=\"middle\" textLength=\"189\" x=\"179.5\" y=\"120\">0. 実験ワークフロー実行準備</text>\n",
|
|
|
+ " <rect fill=\"rgb(255,255,255)\" height=\"145\" stroke=\"rgb(0,0,0)\" width=\"230\" x=\"358\" y=\"40\"/>\n",
|
|
|
+ " <text fill=\"rgb(0,0,0)\" font-family=\"sans-serif\" font-size=\"9\" font-style=\"normal\" font-weight=\"normal\" font-anchor=\"middle\" x=\"360\" width=\"226\" y=\"140\">6. 実行結果を実験リポジトリに同期する</text><text fill=\"rgb(0,0,0)\" font-family=\"sans-serif\" font-size=\"9\" font-style=\"normal\" font-weight=\"normal\" font-anchor=\"middle\" x=\"360\" width=\"226\" y=\"129\">5. 高性能実験環境利用のために必要な設定をする</text><text fill=\"rgb(0,0,0)\" font-family=\"sans-serif\" font-size=\"9\" font-style=\"normal\" font-weight=\"normal\" font-anchor=\"middle\" x=\"360\" width=\"226\" y=\"118\">4. データ同期のための設定をする</text><text fill=\"rgb(0,0,0)\" font-family=\"sans-serif\" font-size=\"9\" font-style=\"normal\" font-weight=\"normal\" font-anchor=\"middle\" x=\"360\" width=\"226\" y=\"107\">3. ユーザー認証を行う</text><text fill=\"rgb(0,0,0)\" font-family=\"sans-serif\" font-size=\"9\" font-style=\"normal\" font-weight=\"normal\" font-anchor=\"middle\" x=\"360\" width=\"226\" y=\"96\">2. READMEに実験実行環境へのリンクを追加する</text><text fill=\"rgb(0,0,0)\" font-family=\"sans-serif\" font-size=\"9\" font-style=\"normal\" font-weight=\"normal\" font-anchor=\"middle\" x=\"360\" width=\"226\" y=\"85\">1. Git管理対象外ファイルを.gitignoreで設定する</text><a xlink:href=\"WORKFLOW/util/required_every_time.ipynb\"><text fill=\"rgb(0,0,0)\" font-family=\"sans-serif\" font-size=\"11\" font-style=\"normal\" font-weight=\"bold\" font-anchor=\"middle\" x=\"360\" width=\"226\" y=\"62\">必要な準備を行う</text></a><rect fill=\"rgb(255,255,255)\" height=\"145\" stroke=\"rgb(0,0,0)\" width=\"230\" x=\"64\" y=\"225\"/>\n",
|
|
|
+ " <text fill=\"rgb(0,0,0)\" font-family=\"sans-serif\" font-size=\"14\" font-style=\"normal\" font-weight=\"normal\" text-anchor=\"middle\" textLength=\"133\" x=\"179.5\" y=\"305\">1. 実験ワークフロー</text>\n",
|
|
|
+ " <rect fill=\"rgb(255,255,255)\" height=\"145\" stroke=\"rgb(0,0,0)\" width=\"230\" x=\"358\" y=\"225\"/>\n",
|
|
|
+ " <text fill=\"rgb(0,0,0)\" font-family=\"sans-serif\" font-size=\"9\" font-style=\"normal\" font-weight=\"normal\" font-anchor=\"middle\" x=\"360\" width=\"226\" y=\"292\">3. 実行結果をデータガバナンス機能に同期する</text><text fill=\"rgb(0,0,0)\" font-family=\"sans-serif\" font-size=\"9\" font-style=\"normal\" font-weight=\"normal\" font-anchor=\"middle\" x=\"360\" width=\"226\" y=\"281\">2.メタ情報をファイルに保存する</text><text fill=\"rgb(0,0,0)\" font-family=\"sans-serif\" font-size=\"9\" font-style=\"normal\" font-weight=\"normal\" font-anchor=\"middle\" x=\"360\" width=\"226\" y=\"270\">1. メタデータを入力する</text><a xlink:href=\"WORKFLOW/enter_metadata.ipynb\"><text fill=\"rgb(0,0,0)\" font-family=\"sans-serif\" font-size=\"11\" font-style=\"normal\" font-weight=\"bold\" font-anchor=\"middle\" x=\"360\" width=\"226\" y=\"247\">実験メタデータを入力する</text></a><rect fill=\"rgb(255,255,255)\" height=\"145\" stroke=\"rgb(0,0,0)\" width=\"230\" x=\"652\" y=\"225\"/>\n",
|
|
|
+ " <text fill=\"rgb(0,0,0)\" font-family=\"sans-serif\" font-size=\"9\" font-style=\"normal\" font-weight=\"normal\" font-anchor=\"middle\" x=\"654\" width=\"226\" y=\"292\">3. 途中保存する</text><text fill=\"rgb(0,0,0)\" font-family=\"sans-serif\" font-size=\"9\" font-style=\"normal\" font-weight=\"normal\" font-anchor=\"middle\" x=\"654\" width=\"226\" y=\"281\">2. 高性能実験環境から実験記録を取得する</text><text fill=\"rgb(0,0,0)\" font-family=\"sans-serif\" font-size=\"9\" font-style=\"normal\" font-weight=\"normal\" font-anchor=\"middle\" x=\"654\" width=\"226\" y=\"270\">1. コミットメッセージを変数に入力する</text><a xlink:href=\"WORKFLOW/save.ipynb\"><text fill=\"rgb(0,0,0)\" font-family=\"sans-serif\" font-size=\"11\" font-style=\"normal\" font-weight=\"bold\" font-anchor=\"middle\" x=\"654\" width=\"226\" y=\"247\">実験を途中保存する</text></a><rect fill=\"rgb(255,255,255)\" height=\"145\" stroke=\"rgb(0,0,0)\" width=\"230\" x=\"358\" y=\"410\"/>\n",
|
|
|
+ " <text fill=\"rgb(0,0,0)\" font-family=\"sans-serif\" font-size=\"9\" font-style=\"normal\" font-weight=\"normal\" font-anchor=\"middle\" x=\"360\" width=\"226\" y=\"477\">3. 実験記録をデータガバナンス機能に同期する</text><text fill=\"rgb(0,0,0)\" font-family=\"sans-serif\" font-size=\"9\" font-style=\"normal\" font-weight=\"normal\" font-anchor=\"middle\" x=\"360\" width=\"226\" y=\"466\">2. 高性能実験環境から実験記録を取得する</text><text fill=\"rgb(0,0,0)\" font-family=\"sans-serif\" font-size=\"9\" font-style=\"normal\" font-weight=\"normal\" font-anchor=\"middle\" x=\"360\" width=\"226\" y=\"455\">1.実行環境構成を記録する</text><a xlink:href=\"WORKFLOW/finish.ipynb\"><text fill=\"rgb(0,0,0)\" font-family=\"sans-serif\" font-size=\"11\" font-style=\"normal\" font-weight=\"bold\" font-anchor=\"middle\" x=\"360\" width=\"226\" y=\"432\">実験を終了する</text></a><path d=\"M 179 185 L 179 217\" fill=\"none\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <polygon fill=\"rgb(0,0,0)\" points=\"179,224 175,217 183,217 179,224\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <path d=\"M 179 185 L 179 217\" fill=\"none\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <polygon fill=\"rgb(0,0,0)\" points=\"179,224 175,217 183,217 179,224\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <path d=\"M 473 370 L 473 402\" fill=\"none\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <polygon fill=\"rgb(0,0,0)\" points=\"473,409 469,402 477,402 473,409\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <path d=\"M 767 370 L 767 390\" fill=\"none\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <path d=\"M 473 390 L 767 390\" fill=\"none\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <path d=\"M 473 390 L 473 402\" fill=\"none\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <polygon fill=\"rgb(0,0,0)\" points=\"473,409 469,402 477,402 473,409\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <path d=\"M 473 370 L 473 402\" fill=\"none\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <polygon fill=\"rgb(0,0,0)\" points=\"473,409 469,402 477,402 473,409\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <path d=\"M 767 370 L 767 390\" fill=\"none\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <path d=\"M 473 390 L 767 390\" fill=\"none\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <path d=\"M 473 390 L 473 402\" fill=\"none\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <polygon fill=\"rgb(0,0,0)\" points=\"473,409 469,402 477,402 473,409\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <path d=\"M 179 185 L 179 217\" fill=\"none\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <polygon fill=\"rgb(0,0,0)\" points=\"179,224 175,217 183,217 179,224\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <path d=\"M 179 185 L 179 217\" fill=\"none\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <polygon fill=\"rgb(0,0,0)\" points=\"179,224 175,217 183,217 179,224\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <path d=\"M 473 370 L 473 402\" fill=\"none\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <polygon fill=\"rgb(0,0,0)\" points=\"473,409 469,402 477,402 473,409\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <path d=\"M 767 370 L 767 390\" fill=\"none\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <path d=\"M 473 390 L 767 390\" fill=\"none\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <path d=\"M 473 390 L 473 402\" fill=\"none\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <polygon fill=\"rgb(0,0,0)\" points=\"473,409 469,402 477,402 473,409\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <path d=\"M 473 370 L 473 402\" fill=\"none\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <polygon fill=\"rgb(0,0,0)\" points=\"473,409 469,402 477,402 473,409\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <path d=\"M 767 370 L 767 390\" fill=\"none\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <path d=\"M 473 390 L 767 390\" fill=\"none\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <path d=\"M 473 390 L 473 402\" fill=\"none\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <polygon fill=\"rgb(0,0,0)\" points=\"473,409 469,402 477,402 473,409\" stroke=\"rgb(0,0,0)\"/>\n",
|
|
|
+ " <rect fill=\"none\" height=\"535\" stroke=\"rgb(243,152,0)\" stroke-dasharray=\"0 196605\" stroke-width=\"3\" width=\"834\" x=\"56\" y=\"30\"/>\n",
|
|
|
+ " <rect fill=\"none\" height=\"165\" stroke=\"rgb(243,152,0)\" stroke-dasharray=\"0 196605\" stroke-width=\"3\" width=\"540\" x=\"56\" y=\"30\"/>\n",
|
|
|
+ " <rect fill=\"none\" height=\"350\" stroke=\"rgb(243,152,0)\" stroke-dasharray=\"0 196605\" stroke-width=\"3\" width=\"834\" x=\"56\" y=\"215\"/>\n",
|
|
|
+ "</svg>"
|
|
|
+ ],
|
|
|
+ "text/plain": [
|
|
|
+ "<IPython.core.display.SVG object>"
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "execution_count": 2,
|
|
|
+ "metadata": {},
|
|
|
+ "output_type": "execute_result"
|
|
|
+ }
|
|
|
+ ],
|
|
|
"source": [
|
|
|
"from IPython.display import SVG\n",
|
|
|
- "%cd ~/\n",
|
|
|
- "%run /home/jovyan/WORKFLOW/scripts/nb_utils.py\n",
|
|
|
- "SVG(filename=generate_svg_diag(diag='WORKFLOW/images/notebooks.diag'))"
|
|
|
+ "import os\n",
|
|
|
+ "\n",
|
|
|
+ "nb_utils_path = os.path.join(os.environ['HOME'], 'WORKFLOW/util/scripts/nb_utils.py')\n",
|
|
|
+ "basic_path = os.path.join(os.environ['HOME'], 'WORKFLOW/images')\n",
|
|
|
+ "basic_path_svg = os.path.join(basic_path, 'notebooks.svg')\n",
|
|
|
+ "basic_path_diag = os.path.join(basic_path, 'notebooks.diag')\n",
|
|
|
+ "os.chdir(os.environ['HOME'])\n",
|
|
|
+ "!python3 $nb_utils_path $basic_path_diag\n",
|
|
|
+ "\n",
|
|
|
+ "SVG(filename=basic_path_svg)"
|
|
|
]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "cell_type": "code",
|
|
|
+ "execution_count": null,
|
|
|
+ "metadata": {},
|
|
|
+ "outputs": [],
|
|
|
+ "source": []
|
|
|
}
|
|
|
],
|
|
|
"metadata": {
|
|
@@ -120,7 +247,7 @@
|
|
|
"name": "python",
|
|
|
"nbconvert_exporter": "python",
|
|
|
"pygments_lexer": "ipython3",
|
|
|
- "version": "3.7.10"
|
|
|
+ "version": "3.9.7"
|
|
|
}
|
|
|
},
|
|
|
"nbformat": 4,
|