[1]:
import pidgy
from IPython import get_ipython
ip = get_ipython()
import pidgy
from IPython import get_ipython
ip = get_ipython()
[2]:
if ip:
!pidgy
Usage: pidgy [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
kernel
run `pidgy` `run` executes `pidgy` documents as programs.
template `pidgy` `template` executes `pidgy` documents as programs and...
test Formally test markdown documents, notebooks, and python files.
to Convert pidgy documents to other formats.
if ip:
!pidgy
[3]:
if ip:
!pidgy run --help
Usage: pidgy run [OPTIONS] REF
`pidgy` `run` executes `pidgy` documents as programs.
Options:
--help Show this message and exit.
if ip:
!pidgy run --help
[4]:
if ip:
!pidgy test --help
Usage: pidgy test [OPTIONS] [FILES]...
Formally test markdown documents, notebooks, and python files.
Options:
--help Show this message and exit.
if ip:
!pidgy test --help
[5]:
if ip:
!pidgy kernel --help
Usage: pidgy kernel [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
install `install` the pidgy kernel.
start Launch a `pidgy` kernel applications.
uninstall `uninstall` the kernel.
if ip:
!pidgy kernel --help
[6]:
if ip:
!pidgy run templated_document.md
Running templated_document.md.
__main__
if ip:
!pidgy run templated_document.md
[7]:
if ip:
!pidgy template templated_document.md
__main__
`foo` is defined as 42
My document recieved ['templated_document.md'] as arguments.
if ip:
!pidgy template templated_document.md
[8]:
# NBVAL_SKIP
if ip:
!chmod u+x templated_document.md
!./templated_document.md
__main__
`foo` is defined as 42
My document recieved ['./templated_document.md'] as arguments.
# NBVAL_SKIP
if ip:
!chmod u+x templated_document.md
!./templated_document.md