-
jose3f23
Some time ago new Pythonista users posted requests to have numpy and other scientific libraries in Pythonista.
Omz kindly answered that the port was hard job mainly due to the need of compiling some fortran code for IOS and ARM.
In my experience numpy setup only needs c compilation. The .f files appear only in the f2py sublibrary of numpy. f2py is needed to translate fortran user code to python and this feature is, of course, no needed in Pythonista. Just comment the f2py line in the numpy setup file.
So I suggest to omz reconsider future inclusion of numpy in Pythonista that would open the door to other packages that need numpy.
I have had a dream....
Thanks for your attention.
-
jose3f23
canvas.translate(0, -screenHeight)
and do not forget that now the origin is top left
-
-
-
-
jose3f23
Thank you @ccc and @achorrath.
The problem I have is that the name of my iPad that appears in the script can not be recognised by the browser in the Mac. I know the problem is related to the DNS not having the Ipad name.
I would like that the script shows the message with the Ipad Ip address. Of course a circumvent is to go to Settings>Wifi and look up for the IP address. This is that I do everyday.
@ccc: nice collection of useful links.
-
jose3f23
With this line
<code>ipAddr = socket.gethostbyname(socket.gethostname() + '.local') </code>Remains the error:
socket.gaierror: [Errno 8] nodename nor servname provided, or not known -
jose3f23
Thank you ccc. But i have the error:
nodename nor servname provided, or not known
-
jose3f23
Very useful script. I use everyday but I need to change the url name of the Ipad to the IP address. i.e.: http://123.456.1.81:8080
That only works in my home wifi network where I know the IP address but not works in another wifi network.
-
jose3f23
I would thank omz to release Scene and Canvas module emulator for use in MacOsx. Not very difficult task as I assume Scene and Canvas wrap UIKit functions.
In other OS like Linux and Windows I understand the job is much more complicated.
-
jose3f23
omz: You are right, <code>execfile('amodule.py')</code> is the solution right now.
Thank you for your answer.
-
jose3f23
I need to use the interactive prompt to interpret interactively code that depends on functions and clases in a certain module. In "desktop" interpreter I use :
python -i amodule.py
Other way in standard python is to start the interpreter and import the module and then the python interpreter continues accepting input.
In Pythonista I do not know how easily do the same as:
1.- I do not know how to stop and restart the interpreter (interactive prompt)
2.- reload() function seems broken. Never find the required module (of course previously imported)
3.- So I have only a opportunity to import a module and to reload I need to exit Pythonista. Even sys.exit() seems have no effect.Thanks in advance.
-
jose3f23
Just tried. But..
if I modify the module I need to run or open a different one. Then I need to <code>reload()</code> but the changes are not active yet. I need besides to import again the module.
Suppose amodule.py contains only a line:
<code>a=1</code>
Then import :
<code>from amodule import *</code>
a shows 1
then change the script:
<code>a=2</code>
I need to run the edited script. Ok
But if I do:
<code>reload(amodule)</code>
a still is 1
I need to do again:
<code>from amodule import *</code>
and finally a is now 2
-
-
jose3f23
I am trying import a module in a subdirectory using the interactive prompt. Module is not found because it seems Pythonista does not set correctly the path to the current subdirectory.
-
jose3f23
I did not notice the text background switch in the export dialog. I have changed the AppDelegate.m class and everything is ok now.
Thank you.
Excuse the OT, but I really miss some text input capabilities in Scene class. IMHO the most important feature to be included in the next release.
-
jose3f23
I am using Xcode 4.6.2 and a canvas script exported shows dark grey background and does not respond to line color changes.
-
jose3f23
Right now it is not possible.
Do you mean that Ole includes tkinter in a future release?
IMHO extremely hard work.See this link:
http://mail.python.org/pipermail/tkinter-discuss/2013-March/003380.html
-
jose3f23
@omz: Thanks. Let's wait the next update.
In the meantime I will use a script that compress the files in the subfolder to a zip file and send it by sendmail.
-
jose3f23
It seems that export scripts in a subdirectory only works for the current script in the editor. So it is not possible to export a subdirectory contents. Am I wrong ?