{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# はじめに" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "このドキュメントは JupyterLab で作成・編集し、Sphinxでビルドしました" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## なぜJupyterLab?\n", "\n", "* 輪読会で使用している本「[ゼロから作るDeep Learning ――Pythonで学ぶディープラーニングの理論と実装](https://www.oreilly.co.jp/books/9784873117584/)」にあるコードと、実行結果をまとめるのにちょうどいい環境がJupyterにそろっている\n", "* Jupyterでは、書いたコードと実行結果を並べて表示できる\n", "* 何なら、Markdownも一緒に書ける" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## なぜSphinx?\n", "\n", "* Jupyterで生成したものを静的にビルドできる\n", "* 後からLaTexを入れるなど、拡張が可能" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Jupyterで作成し、Sphinxでビルドするとどんな感じ?" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "こんな感じ\n" ] } ], "source": [ "print(\"こんな感じ\")" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "ename": "SyntaxError", "evalue": "EOL while scanning string literal (, line 1)", "output_type": "error", "traceback": [ "\u001b[1;36m File \u001b[1;32m\"\"\u001b[1;36m, line \u001b[1;32m1\u001b[0m\n\u001b[1;33m print(\"なんならエラーも出る)\u001b[0m\n\u001b[1;37m ^\u001b[0m\n\u001b[1;31mSyntaxError\u001b[0m\u001b[1;31m:\u001b[0m EOL while scanning string literal\n" ] } ], "source": [ "print(\"なんならエラーも出る)" ] } ], "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.3" } }, "nbformat": 4, "nbformat_minor": 4 }