The Today widget is no longer included in the release version of Pythonista! You cannot run this script in the notification center anymore!
If you still want to try it, you can download and run it normally in Pythonista. The UI will appear as a normal sheet view instead. This script is not very useful outside of the notification center though.
https://github.com/dgelessus/pythonista-scripts/blob/master/today_python_console.py
It had to be done. Not very useful and not very polished, but a fun exercise. The keyboard is just a bunch of ui.Buttons, and the "text field" is a ui.Label. There is a cursor, but it needs to be moved with arrow "keys".
To use this script meaningfully, you need to have Pythonista 3 and need to set this script as the Today Widget script. It is possible to run this script normally from the editor, but this meant for debugging - doing so is not very useful on its own and probably breaks the interactive console (until you restart the app).
(Warning: Very likely to crash if another app or too many widgets are running. Works best on the home screen.)
