Article Press Demo
JSON → Static HTML with code execution
ArticleDemoPython
ArticleDemoPython
This is a demo article rendered from JSON. It supports inline code and images.

import math
from PIL import Image, ImageDraw
W,H = 400, 200
img = Image.new('RGB', (W,H), (255,255,255))
draw = ImageDraw.Draw(img)
for x in range(W):
y = int((math.sin(x/20.0)+1)*0.5*H)
draw.point((x, H-1-y), fill=(0,0,200))
img.save('sine.png')
print('wrote sine.png')
To execute code and embed its output, set exec: true in the block above.
If you're exploring related work and need hands‑on help, I'm open to consulting and advisory. Contact me on LinkedIn.