flowchart_js_jp_proxy_widget
jp_proxy_widget class wrapper for flowchart.js
We can also script the production of the flowchart:
from jp_flowchartjs.jp_flowchartjs import FlowchartWidget
fcode='''
st=>start: Start
e=>end: End
op1=>operation: Generate
op2=>parallel: Evaluate
st(right)->op1(right)->op2
op2(path1, top)->op1
op2(path2, right)->e
'''
testEmbed = FlowchartWidget()
testEmbed.charter(fcode)
testEmbed
- return SVG embed:
testEmbed.embed_svg() - return SVG data:
testEmbed.get_svg() - return PNG embed:
testEmbed.embed_png() - return PNG raw:
testEmbed.getpng() - oneliner return SVG:
FlowchartWidget().charter(fcode, embed=True)
We can also define a really simple magic:
from IPython.core.magic import register_cell_magic
@register_cell_magic
def flowchart_magic(line, cell):
"Send code to simulator."
return FlowchartWidget().charter(cell, embed=True)
and then call as:
%%flowchart_magic
st=>start: Start
e=>end: End
op1=>operation: Generate
op2=>parallel: Evaluate
st(right)->op1(right)->op2
op2(path1, top)->op1
op2(path2, right)->e
If you import jp_flowchartjs.jp_flowchartjs the magic will be available.
Metadata
Release files for jp-flowchartjs 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jp_flowchartjs-0.0.1.tar.gz | 2.9 kB | Without provenance | Details for jp_flowchartjs-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jp_flowchartjs-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for jp_flowchartjs-0.0.1-py3-none-any.whl |
Total release size: 6.8 kB
Release files / jp_flowchartjs-0.0.1.tar.gz
| Download URL | jp_flowchartjs-0.0.1.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e24163cc455de7c1708f9fe3b60231fae45b52b34510980d04ea7d3dc154188
|
|
BLAKE2b-256 checksum How to use checksums |
46bbbbf6f6657ded7a9b940eb4f5b8fa09a2bb623de248682c34fb9a6d9cb1e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
|
Release files / jp_flowchartjs-0.0.1-py3-none-any.whl
| Download URL | jp_flowchartjs-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
71c8bd5391bbf1915c37d04431ef378799283bbcd56487a77b7a4c971b049dc1
|
|
BLAKE2b-256 checksum How to use checksums |
2090b51befb21d604fdbaffff8185d2ef05ef1aa6a6daf61a4ebd58b5f61e50d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
|
Security for jp-flowchartjs 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.