Matches in Nanopublications for { <http://purl.org/np/RAjc1d2L36iZcgEJ7Lcp06mWA6gA1QOJh5oY5bPRDfbkk#step> ?p ?o ?g. }
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='Resize image') def resize_image(imgStr:str) -> str: """Resize the image 300x300 """ from PIL import Image image = Image.open(io.BytesIO(imgStr)) new_image = image.resize((300, 300)) mgOut = io.BytesIO() new_image.save(imgOut, format="png") return imgOut.getvalue()" assertion.