Python REPL

Generatore di immagini di codice Python REPL

Trasforma gli snippet Python REPL in immagini che vale la pena condividere, senza uscire dal tuo Mac.

A REPL transcript is a conversation, and the prompts are what make it one. Pasting it as text usually loses them or breaks the alignment.

Codeshot riconosce Python REPL dal codice che incolli, quindi non c’è nessun selettore di linguaggio da sbagliare. Ecco lo stesso snippet in tre dei 30 temi inclusi, resi con i fogli di stile dell’app.

>>> from snapshot import render
>>> img = render("print('hi')", theme="xcode")
>>> img.size
(1600, 900)
>>> img.save("out.png", scale=2)
'out.png'
Atom One · scuro
>>> from snapshot import render
>>> img = render("print('hi')", theme="xcode")
>>> img.size
(1600, 900)
>>> img.save("out.png", scale=2)
'out.png'
GitHub · scuro
>>> from snapshot import render
>>> img = render("print('hi')", theme="xcode")
>>> img.size
(1600, 900)
>>> img.save("out.png", scale=2)
'out.png'
Solarized · scuro

Scegliere un tema per Python REPL

Keep the triple-chevron prompts and the output together. A transcript without its results is just code, and worse code than you would have written deliberately.

Azzeccare la misura

Lascia che l’immagine segua il contenuto o bloccala su un rapporto — 1:1, 4:3, 3:2, 16:9, 9:16, 2:3 o 3:4 — poi esporta a 1×, 2× o 3× così resta nitida su uno schermo retina. Copiala negli appunti con C oppure salvala con S.

Guarda tutti i 30 temi a confronto oppure leggi il flusso completo.

Pensato per Python REPL e altri 59 linguaggi

Tutto gira sul tuo Mac. Il tuo codice non lo lascia mai.

Scarica per macOS