• sidewinder

    Can I widen this question to ask if a workflow / python module can change app settings? I'd like to write a workflow which can change the Markdown HTML template (e.g. to install Mathjax support).

    posted in Editorial read more
  • sidewinder

    @Vijay
    Fantastic tip. The online mathjax works brilliantly! Did you get inline latex to compile? I can only get $ x $ style equations to compile when I try.

    Update: Inline latex works when you escape the slash character, e.g. //(/sqrt{x}//)

    What a powerful tool editorial is...

    posted in Editorial read more
  • sidewinder

    Fantastic work Ole! Looking brilliant on my iPhone. Still waiting for the iPad to pick up the update.

    Vijay, if you can get MathJax to work I'll be very interested! :-)

    posted in Editorial read more
  • sidewinder

    Hi all,

    I've written some lovely code in Pythonista which uses Scene to display graphics and handle touch interactions. I'd like to port my code to PC/Mac and replace the touches by mouse clicks. I see I can do this with tkinter but it's syntax is very different to Scene. Is there a PC python module whose syntax is close to Scene?

    posted in Pythonista read more
  • sidewinder

    Great! Henryiii - it shouldn't be too hard to edit the Dropbox script to tell it to ignore the sympy folder. Have a look at my alteration to it to ignore the inbox folder on downloading (since attempting to write to the Inbox causes an error).

    https://gist.github.com/sidewinder42/8631794

    posted in Pythonista read more
  • sidewinder

    So sympy works with pythonista? Great! How did you install it? And why do you have to delete it to do a DropBox backup?

    posted in Pythonista read more
  • sidewinder

    Hi all,

    I have been experimenting with the Scene module and I love it's simplicity. I am coding up a physics demo and the touch syntax is wonderful.

    However, I'd like to also allow the user to enter text during the Scene. E.g to change a value such as gravity. I'm thinking of coding my own Gravity+ Gravity- keys but is there a simpler way to combine keyboard entry with Scene?

    posted in Pythonista read more
  • sidewinder

    Those links are very helpful! Thank you.

    posted in Pythonista read more
  • sidewinder

    I learnt Python (mostly) on the iPad. The best basic treatments don't use any modules which Pythonista doesn't have. I'd recommend the very thorough "Learning Python" by Lutz (O' Reilly) and the good for programming-savvy beginners online notes "Learn Python the hard way".

    posted in Pythonista read more
  • sidewinder

    Thanks Coder123! It is strange, the console seems to have permissions to delete scripts in that directory, but not write to it! In any case, the fix above does work now, but it is making me cringe a little. Now I have learnt more Python, a far better way of accomplishing the error handling would be to use try and except.

    posted in Pythonista read more
  • sidewinder

    Have you tried using the modules imaplib or poplib? These python modules are able to log in to mail servers and download mail directly into your python script. There is a lot of sample code to acheive email parsing on the web if you google.

    posted in Pythonista read more
  • sidewinder

    I seem unable to give scripts write access to Inbox, but have come up with a workaround. I have now added the conditional to the download function in the script:

    if not head=='Inbox':
    

    which ignores the Inbox directory and hence does not sync it.

    Once I have got GIST and GitHub up and running I'll upload this as a fork.

    Edit: Here is the forked version with this work around included. DropboxSync now works in 1.4 without crashing but does not sync files in Inbox directory.

    DropboxSync

    posted in Pythonista read more
  • sidewinder

    I am encountering a problem with wrenoud's otherwise excellent DropboxSync.py GIST with the latest Pythonista and the Inbox directory.

    If the Inbox directory is empty, sync works perfectly. If there are files in Inbox, while upload to dropbox works fine, when I come to sync these to a different I-device, DropboxSync.py crashes with the following error when it attempts to download the Inbox file to this second device.

    The error occurs on line 61 of the script when Pythonista is trying to open up a non-existent file in Inbox for writing to. The error message is:

    IOError: [Errno 1] Operation not permitted: u'Inbox/filename.py'

    Sync with other sub folders works perfectly.

    Do any of you have an idea for how to fix this? Does the Inbox folder have special permissions? Is there an updated version of wrenoud's script which works better with Inbox?

    Thanks (I'm a python newbie and fixing this seems beyond my current powers!)

    Update: After some further experimentation I am coming to the conclusion that scripts are simply not allowed write access to the Inbox folder. Is this the case?

    posted in Pythonista read more
  • sidewinder

    Can I vote against in-app-purchase? It has a tacky money grabbing feel and splits the user base. New users alone will generate handsome returns for a numpy matplotlib module.

    posted in Pythonista read more
  • sidewinder

    Fantastic news! Thank you. :-)

    posted in Pythonista read more
Internal error.

Oops! Looks like something went wrong!