Difference between revisions of "Ploomber"
Jump to navigation
Jump to search
| (6 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | https://ploomber.readthedocs.io/_/downloads/en/stable/pdf/ | + | * https://github.com/ploomber/ploomber |
| + | * https://blog.jupyter.org/ploomber-maintainable-and-collaborative-pipelines-in-jupyter-acb3ad2101a7 | ||
| + | * https://ploomber.readthedocs.io/_/downloads/en/stable/pdf/ | ||
<source lang='bash'> | <source lang='bash'> | ||
pip install ploomber | pip install ploomber | ||
| + | </source> | ||
| + | |||
| + | = Example = | ||
| + | == ex0-nb.py == | ||
| + | <source lang='python'> | ||
| + | #%load header.html | ||
| + | </source> | ||
| + | == header.html == | ||
| + | <source lang='html'> | ||
| + | <table style="width:100%; float:center; background-color:#FFFFFF" align="left"> | ||
| + | <tr> | ||
| + | <td style="text-align:left; background-color:#FFFFFF"></td> | ||
| + | <td style="text-align:right; background-color:#FFFFFF"> | ||
| + | <div> | ||
| + | <img src="https://wiki.bitplan.com/images/wiki/1/1e/IssueIcon.png" width="64"/> | ||
| + | </div> | ||
| + | </td> | ||
| + | </tr> | ||
| + | </table> | ||
| + | |||
| + | <div class="pull-left"> | ||
| + | This is an example Event | ||
| + | </div> | ||
| + | |||
| + | <div class="pull-right"> | ||
| + | <h4> 2022-07-12 </h4> | ||
| + | </div> | ||
| + | <center> | ||
| + | <h1> Let's try ploomber!</h1> | ||
| + | </center> | ||
| + | </source> | ||
| + | == pipeline.yaml == | ||
| + | <source lang='yaml'> | ||
| + | tasks: # also works with .ipynb etc | ||
| + | - source: ex0-nb.py | ||
| + | name: Example 0 Notebook | ||
| + | product: | ||
| + | nb: output/ex0-nb.ipynb | ||
| + | # data: output/output-report.pdf | ||
| + | </source> | ||
| + | = Macports = | ||
| + | to use ploomber plot | ||
| + | <source lang='bash'> | ||
| + | sudo port install py39-pygraphviz | ||
</source> | </source> | ||
Latest revision as of 18:37, 17 March 2022
- https://github.com/ploomber/ploomber
- https://blog.jupyter.org/ploomber-maintainable-and-collaborative-pipelines-in-jupyter-acb3ad2101a7
- https://ploomber.readthedocs.io/_/downloads/en/stable/pdf/
pip install ploomber
Example
ex0-nb.py
#%load header.html
header.html
<table style="width:100%; float:center; background-color:#FFFFFF" align="left">
<tr>
<td style="text-align:left; background-color:#FFFFFF"></td>
<td style="text-align:right; background-color:#FFFFFF">
<div>
<img src="https://wiki.bitplan.com/images/wiki/1/1e/IssueIcon.png" width="64"/>
</div>
</td>
</tr>
</table>
<div class="pull-left">
This is an example Event
</div>
<div class="pull-right">
<h4> 2022-07-12 </h4>
</div>
<center>
<h1> Let's try ploomber!</h1>
</center>
pipeline.yaml
tasks: # also works with .ipynb etc
- source: ex0-nb.py
name: Example 0 Notebook
product:
nb: output/ex0-nb.ipynb
# data: output/output-report.pdf
Macports
to use ploomber plot
sudo port install py39-pygraphviz