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.
Sympy future updates and external PC keyboard
-
Hi , I'm new user of Pythonista and I have some little knowledge about Python language. I want to improve my skill trying to write a symbolic calculator using the 'ui' and the 'sympy' modules. I have two question:
- Future releases of Sympy will be included in future releases of Pythonista (as a built in library, no as external library downloadable via "pip install")?
- Can I use a PC physical keyboard to write code for Pythonista and to run it, maybe with a bluetooth or wi-fi connection between PC and iPhone? My goal is to open Pythonista on iPhone and to start to use it with an external keyboard (of an existing PC, no bluetooth keyboard) using qwerty physical keyboard and some key shortcut to run or to save the code. When I run the code, I'd like to see the result on the iPhone screen (a sort of bluetooth console for Python in old Symbian phones, PyS60, but for Pythonista). Is it possible only by the point of view of Pythonista App or it requires some changes in the Operating System of iPhone (so by Apple point of view)?
Thanks
Bye
Matteo -
-
sympy seems to be a pure python module and hence you can install it using pip even if it is not included in future. I am not sure what is your concern in installing using pip.
-
Look at the following discussion for using PC keyboard.
https://forum.omz-software.com/topic/2714/webide
-
-
Hi abcabc, thanks for reply:
-
no particular concern, but when I update an external library with pip, it overwrites the builtin one? So sympy 0.7.4.1 becomes 1.0? And a builtin library in Pythonista is always faster than an user installed one? At link http://omz-software.com/pythonista/sympy/ I read:
Note
The Installation section doesn’t apply to Pythonista, SymPy is already completely integrated.
SymPy is a very large package, and the first import can be somewhat slow on an iOS device (up to 10 seconds are not uncommon). After importing it for the first time, performance should be much better though.So do I expect the execution of sympy commands is slower with an update via pip than with the builtin precompiled version of the same library?
-
Thanks for the link, I will try it, sorry if I could not find it by browsing the forum.
Bye
Matteo -
-
The reason it is slow is because it is big, and written entirely in python. That wouldn't change if it came built in...
You can install any version you want... if it was included with pythonista, you'd probably find you want to update it( official pythonista releases happen sort of infrequently, and don't always update external package versions)
-
Hi JonB, ok thank you. But when I update an external library with pip, it overwrites the builtin one? So sympy 0.7.4.1 becomes 1.0?
I have not received the answer, sorry. Thanks
Matteo -
@Matteo , I don't know much about this. But I am pretty sure SymPy is not overwritten as the site-packages are read only. So this must be a path thing. @JonB also mentions that it probably would not be faster if distributed with Pythonista anyway as well as the update cycles would not reflect each other. So it sounds like if you want the latest Sympy module, you are doing it the best way already.
-
Ok, thank you very much Phuket2 for the clarifications.
Bye
Matteo