Difference between revisions of "Ploomber"

From BITPlan Wiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
* https://github.com/ploomber/ploomber
 
* 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/
 
* https://ploomber.readthedocs.io/_/downloads/en/stable/pdf/
 
<source lang='bash'>
 
<source lang='bash'>
Line 36: Line 37:
 
== pipeline.yaml ==
 
== pipeline.yaml ==
 
<source lang='yaml'>
 
<source lang='yaml'>
pipeline.yaml
 
 
tasks:  # also works with .ipynb etc
 
tasks:  # also works with .ipynb etc
 
   - source: ex0-nb.py
 
   - source: ex0-nb.py
Line 43: Line 43:
 
       nb: output/ex0-nb.ipynb
 
       nb: output/ex0-nb.ipynb
 
#      data: output/output-report.pdf
 
#      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 19:37, 17 March 2022

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