RPReplay_Final1678149883.MP4
-
Get Pythonista on your iOS device
Pythonista is a complete scripting environment for Python, running directly on your iPad or iPhone. It includes support for both Python 3.6 and 2.7, so you can use all the language improvements in Python 3, while still having 2.7 available for backwards compatibility.
In true Python fashion, batteries are included – from popular third-party modules like requests, numpy, matplotlib, and many more, to modules that are tailor-made for iOS. You can write scripts that access sensor and location data, your photo library, contacts, reminders, the clipboard, and much more.
You can also use Pythonista to build interactive multi-touch experiences, custom user interfaces, animations, and 2D games.
Apart from learning and practicing Python, you can also use Pythonista to automate parts of iOS with app extensions, e.g. to invoke scripts directly from the standard share sheet in almost any app.
-
Install StaSh
-
Install
sseclient-py
by launching StaSh shell usinglaunch_stash.py
and then executepip install sseclient-py
-
Put the corresponding files into Pythonista documents
-
Replace
OPENAI_TOKEN
inchat_cmpl.py
with your OpenAI token -
Add
chat_cmpl.py
to your Keyboards in Pythonista by going toSettings
->Pythonista Keyboard
->Add
-> Choosechat_cmpl.py
as the script -
Go to iOS Settings -> General -> Keyboard -> Keyboards -> Add New Keyboard -> Pythonista Keyboard and enable Full Access
-
Now you can use the keyboard to chat with OpenAI anywhere in iOS!