Ploomber

From BITPlan Wiki
Jump to navigation Jump to search
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