python: add a %%pml magic
Fixes #162. * python/spot/ltsmin.i: Implement the magic. * NEWS: Mention it. * tests/python/ltsmin-pml.ipynb: New file. * tests/Makefile.am, doc/org/tut.org: Add it. * tests/python/ipnbdoctest.py: Adjust.
This commit is contained in:
parent
a7e4395f9d
commit
272daf62fc
6 changed files with 564 additions and 14 deletions
|
|
@ -71,6 +71,10 @@ def sanitize(s):
|
|||
# normalize graphviz version
|
||||
s = re.sub(r'Generated by graphviz version.*', 'VERSION', s)
|
||||
|
||||
# remove Spins verbose output version
|
||||
s = re.sub(r'SpinS Promela Compiler.*Compiled C model to .*pml.spins',
|
||||
'SpinS output', s, flags=re.DOTALL)
|
||||
|
||||
# SVG generated by graphviz may put note at different positions
|
||||
# depending on the graphviz build. Let's just strip anything that
|
||||
# look like a position.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue