Forum Archive

How to print javascript console in pythonista ?

Raymond

Like the title, how to print javascript console, or How to send message from javascript to pythonista ?

JonB

The best way is to use wkwebview
https://github.com/mikaelho/pythonista-webview

It includes an interactive console. eval_js let's you evaluate JavaScript expressions (returns Json).

For something quick and dirty with the built in webview, see
https://forum.omz-software.com/topic/1804/debugging-in-javascript-in-pythonista