aboutsummaryrefslogtreecommitdiff
path: root/examples/example3
diff options
context:
space:
mode:
authorCody Hiar <cody@hiar.ca>2019-10-16 10:36:14 -0600
committerCody Hiar <cody@hiar.ca>2019-10-16 10:36:14 -0600
commit81f10379aa6de8da03ea9553d54252435a48dbea (patch)
treec023c7f11d846bd6ab87c5946764dcf13f135e6c /examples/example3
Initial commit
Diffstat (limited to 'examples/example3')
-rw-r--r--examples/example3/README.md26
-rw-r--r--examples/example3/foo.py3
2 files changed, 29 insertions, 0 deletions
diff --git a/examples/example3/README.md b/examples/example3/README.md
new file mode 100644
index 0000000..d7363e5
--- /dev/null
+++ b/examples/example3/README.md
@@ -0,0 +1,26 @@
+Launch ipython
+
+```
+ipython
+```
+
+Turn on autoreloading
+
+```
+%load_ext autoreload
+%autoreload 2
+```
+
+Import the bar command from foo
+
+```
+from foo import bar
+```
+
+Run bar
+
+```
+bar()
+```
+
+Make changes what bar prints, save and run again
diff --git a/examples/example3/foo.py b/examples/example3/foo.py
new file mode 100644
index 0000000..0768844
--- /dev/null
+++ b/examples/example3/foo.py
@@ -0,0 +1,3 @@
+
+def bar():
+ print("bar")