Welcome!
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.
No update?
-
@ccc No I’m not good at programming on iOS. I tried stash and made some pull requests.
-
@timtim Perhaps could you run this kind of code to execute in Pyto some modules unknown in Pythonista
import sys import urllib import webbrowser #print(sys.argv) if len(sys.argv) == 1: # ┏━━━━━━━━━━━━━━━━━━━━┓ # ┃code to run in Pyto ┃ # ┗━━━━━━━━━━━━━━━━━━━━┛ code = ''' import urllib import webbrowser import pandas as pd data = { 'apples': [3, 2, 0, 1], 'oranges': [0, 3, 7, 2] } purchases = pd.DataFrame(data) result = str(purchases) encoded = urllib.parse.quote(result) webbrowser.open('pythonista3://pyto.py?action=run&argv='+encoded) ''' # execute code in Pyto encoded = urllib.parse.quote(code) webbrowser.open('pyto://x-callback/?code='+encoded) else: # back from Pyto print(sys.argv[1])
-
@cvp 😃very creative, best of both worlds... respect!
-
@pulbrich thank you but it was mainly for fun 😀
-
-
-
-
@cvp I can’t do that since I’m writing code run on iOS, windows and Linux. So I can’t use pyto there.
-
@pulbrich Now it works in both directions :-)
-
-
@timtim said:
I’m writing code run on iOS, windows and Linux
if sys.platform.startswith(“ios “):
-
@timtim said:
Check your profile pictures, looks funny.
I had remarked similar moustaches but I didn't dare post something
-
@cvp said:
I had remarked similar moustaches but I didn't dare post something
I guess it just comes with experience.
-
-
@ccc en… looks ugly. I won’t do that.
-
How could it be ugly? It is Pythonic.
-
Agree, I didn't understand too.
-
It is ugly. I have to write duplicated code for this. And excute it like https://docs.python.org/3/library/functions.html#exec . TOO UGLY.
-
Nonsense.
-
@cvp
This absolutely briliant!