From 81f10379aa6de8da03ea9553d54252435a48dbea Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Wed, 16 Oct 2019 10:36:14 -0600 Subject: Initial commit --- examples/example3/README.md | 26 ++++++++++++++++++++++++++ examples/example3/foo.py | 3 +++ 2 files changed, 29 insertions(+) create mode 100644 examples/example3/README.md create mode 100644 examples/example3/foo.py (limited to 'examples/example3') 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") -- cgit v1.2.3