SAME-Project / same-project

https://sameproject.ml/
Apache License 2.0
20 stars 8 forks source link

Fix magic line parsing in notebook processor #89

Closed Bubblyworld closed 2 years ago

Bubblyworld commented 2 years ago

See #72.

We are currently splitting notebook code by line and checking each line to see if it's magic (!pip install "...", for instance). This fails if there are multiline strings containing what look like magic lines. Fortunately jupytext provides a python parser than can differentiate these out of the box.