{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# 実験を終了する\n", "\n", "これは実験を終了するためのノートブックです。" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 1. 実行環境構成を記録する" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "%%sh\n", "conda env export > ~/environment.yml\n", "pip freeze > ~/requirements.txt" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 2. コミットメッセージを入力する\n", "\n", "以下のセルでコミットメッセージを入力してください。" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "save_message = input()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 3. 実験を書き戻す" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "%cd ~/\n", "!git add ~/\n", "!git commit -m $save_message\n", "!git push origin master\n", "\n", "# import papermill as pm\n", "# \n", "# pm.execute_notebook(\n", "# './util/datalad_save_push.ipynb',\n", "# '-',\n", "# parameters = dict(SAVE_MESSAGE = save_message)\n", "# )" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.12" } }, "nbformat": 4, "nbformat_minor": 4 }