microsoft / gather

Spit shine for Jupyter notebooks 🧽✨
https://microsoft.github.io/gather
MIT License
532 stars 38 forks source link

Gather API #47

Open psychemedia opened 3 years ago

psychemedia commented 3 years ago

I'm not clear as to how gather actually works, whether it does a static analysis of a notebook, or whether it looks at cell execution / state history and then tries to identify the executed cells that influenced the execution of a given cell.

If it's a static analysis, given a notebook ipynb file, and an identified code cell, whether "code cell 5 of 10" or a code cell identified by a particular cell tag, it would be useful to be able to call something like gather("mynotebook.ipynb", code_cell=5) or gather("mynotebook.ipynb", code_id="final_chart") and return gather code cells with the identified code cell as the last cell.