Matches in Nanopublications for { ?s ?p ?o <http://purl.org/np/RAlBYV-4V0SjcFXeylB7_MSPlrVqt9ftMNdFUoZZIJlNs#assertion>. }
Showing items 1 to 3 of
3
with 100 items per page.
- step type Step assertion.
- step label "Cell from a Jupyter Lab notebook" assertion.
- step description "@is_fairstep(label='Rotate image') def rotate_image(imgStr:str) -> str: """Rotate image""" from PIL import Image image = Image.open(io.BytesIO(imgStr)) new_image = image.transpose(Image.ROTATE_90) mgOut = io.BytesIO() new_image.save(imgOut, format="png") return imgOut.getvalue()" assertion.