This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Rendering HTML output (w/o running a server?)
lhl last edited by
I'm just getting started w/ Pythonista and it's great, but I'm just wondering if there's a simple way to generate and load simple HTML output (like a list of links) that I'm missing? It looks like the webbrowser module will only take an URL - ideally I'd like to send a string to the in-app web browser to be rendered.
I saw the console.write_link(), but that's a bit limited (I'd like to be able to have some styling).
I suppose I could run a Python webserver and then fire off a threaded call to webbrowser.open() but that seems a bit overkill?
peterh86 last edited by
On the editorial workflows site http://editorial-app.appspot.com/workflows the workflow Render to PDF shows you how to create a mini webserver in python.
But I don't understand what you want to do, and as you say, this is probably overkill. Pythonista's companion app, Editorial, has a workflow action Show html and a function console.quicklook that shows rendered html and lets you open it in a browser app (I have icab mobile), but strangely does not let you open in safari. The prerelease blurb for Pythonista 1.4 said it would have console.quicklook, but it's not in the documentation.