projects
projects copied to clipboard
re format scripts to py percent format
some examples are still in the jupytext light format, but we should move them to py percent
# %%
1 + 1
We can use the jupytext cli for that:
jupytext script.py --to py:percent
Is this the light format?
# +
# A single code cell made of two paragraphs
a = 1
def f(x):
return x+a
If not an example would be great!
yeah, the light format uses # +
as separator
Hi, I have submitted a pull request to solve this issue. #63
hi, thanks for your contribution.
#63 is modifying files that are not supposed to be notebooks (like a setup.py)
I think we already manually converted most of the files to py percent, but there might be some left.
the only reliable way is to look at all the pipeline.yaml
files that we have, look at the sources (e.g. source: stuff.py
) and then convert those to py:percent. Files that do not appear as sources in the examples should not be interpreted as notebooks