diff options
Diffstat (limited to 'examples/example3')
-rw-r--r-- | examples/example3/README.md | 26 | ||||
-rw-r--r-- | examples/example3/foo.py | 3 |
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") |