%%pyd import std.stdio; @pdef!() void zemain(string[] args) { writefln("hello"); } zemain(["s"]) "hello" appears in console window (not the notebook).