diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000..b5f2b45cb8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.ipynb_checkpoints +.DS_Store diff --git a/_trial_temp/_trial_marker b/_trial_temp/_trial_marker new file mode 100755 index 0000000000..e69de29bb2 diff --git a/_trial_temp/test.log b/_trial_temp/test.log new file mode 100644 index 0000000000..19ec5ea349 --- /dev/null +++ b/_trial_temp/test.log @@ -0,0 +1,2 @@ +2018-03-09 13:12:47-0500 [-] Log opened. +2018-03-09 13:12:47-0500 [-] --> index_test.TestVariables.test_variables_intro <-- diff --git a/index.ipynb b/index.ipynb new file mode 100644 index 0000000000..9da008e50d --- /dev/null +++ b/index.ipynb @@ -0,0 +1,91 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Variables Lab" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Now that you know about variables, you went from just attending Python conferences, to being a top knotch guest speaker. You want to send thank you notes to all of the attendees, and to do so efficiently." + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Labs with Learn" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "In the first lab, we ensured that we were doing things correctly by seeing that our output matched what we saw as a comment." + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "'Art Vandelay'" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "'art vandelay'.title() # 'Art Vandelay'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "In this lab, we will use double check if we are doing things correctly with Learn." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "name = 'art vandelay'" + ] + } + ], + "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.6.1" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/test/__pycache__/index_test.cpython-36.pyc b/test/__pycache__/index_test.cpython-36.pyc new file mode 100644 index 0000000000..a696a78a5c Binary files /dev/null and b/test/__pycache__/index_test.cpython-36.pyc differ diff --git a/test/index_test.py b/test/index_test.py new file mode 100644 index 0000000000..a0dd684c35 --- /dev/null +++ b/test/index_test.py @@ -0,0 +1,7 @@ +import unittest2 as unittest +from twisted.trial import unittest +from ipynb.fs.full.index import (name) + +class TestVariables(unittest.TestCase): + def test_variables_intro(self): + self.assertEqual(name, 'bob')