omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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.


    Pythonista crash on iPadPro while using external keyboard arrow keys.

    Pythonista
    6
    13
    6920
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JiangShenLi
      JiangShenLi last edited by

      Pythonista crashes often when while editing from my Bluetooth keyboard, I move the cursor with my keyboard arrow keys; such as up or down. By crash meaning Pythonista exits to the home screen.

      The most frustrating result is I can lose a significant amount of code entry, so I have to redo lots of typing. I've started the habit of navigating away from the file and back in to cause Pythonista to save my edits.

      So, a couple of questions:

      1. How do I prevent this crash?
      2. How can I direct Pythonista to save my edits, so the next crash isn't so painful in terms of retyping what was lost?
      1 Reply Last reply Reply Quote 0
      • mgilkey
        mgilkey last edited by

        I frequently see the same problem on a 6th-generation iPod Touch.
        I think it's running iOS 10.3.2.
        It's using a version of Pythonista 3 downloaded shortly before November 29, 2017.
        The keyboard is a Verbatim folding keyboard. I don't remember the model number.

        I'd save frequently, except that I'm not sure how to force an explicit save.

        1 Reply Last reply Reply Quote 1
        • omz
          omz last edited by omz

          @JiangShenLi @mgilkey I haven't been able to reproduce this so far.

          Does your scripts contain special unicode characters (Asian scripts, emoji etc.)? Would it perhaps be possible to share a script where this is reproducible, so that I can debug the issue?

          Also, are any jailbreak tweaks involved?

          JiangShenLi 1 Reply Last reply Reply Quote 1
          • Phuket2
            Phuket2 last edited by

            @omz, to the other part of the question of Pythonista file saving. If you change to another tab and back again, does that force Pythonista to save files?

            1 Reply Last reply Reply Quote 1
            • omz
              omz last edited by

              @Phuket2 Yes. Opening the "wrench" menu will also save the current file.

              1 Reply Last reply Reply Quote 2
              • jsamlarose47
                jsamlarose47 last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • JiangShenLi
                  JiangShenLi last edited by

                  As far as special characters: I had copied some greek symbols from Safari. Now I'm only using those from the iOS Greek keyboard. (I'm using Greek because I'm coding routines from an astrodynamics book that uses lots of math-greek symbols, and the code is easier to check against the math by making it look similar.)

                  I'm forcing a save after some tedious coding by backing out to the file navigator and into the file again. Much easier that having to re-enter code that was lost to the crash.

                  Also, I wondered if the crash was happening due to the device being low on memory. So I rebooted, and haven't seen the crash since; though I've also taken the precautions I mentioned before.

                  It would be helpful if the app showed a 'file changed' mark between auto-saves. As things are, I'm forcing the save so I don't lose my work.

                  Thanks all for the responses. :-)

                  1 Reply Last reply Reply Quote 0
                  • JiangShenLi
                    JiangShenLi @omz last edited by

                    @omz No jailbreaks. On the Unicode question: Yesterday I actually tried using some astronautical body symbols, like those representing Earth, Venus, Neptune, etc. But I got "illegal character in identifier", or something similar. Though I am able to see them and use them in comments. I do have many Greek characters from the iOS Greek keyboard in variable names. They work just fine.

                    The code I'm writing needs to distinguish between scalars, vectors, matrices, derivatives, second derivatives. In books it's normally done with bold type, arrow over the character, etc. Especially then distinguishing between a vector and its scalar magnitude. So I've had to come up with a naming convention to mimic what typesetting does in the books.

                    1 Reply Last reply Reply Quote 0
                    • JonB
                      JonB last edited by

                      I never realized you could use unicode in python variable names... makes sense, but didnt realize that was true.

                      Since unicode has combining diacritics, you could actually make a floating math keyboard that insers the special characters -- so you could add dots, arrows, subscripts, etc:

                      Ḃᵧ=1

                      JiangShenLi 1 Reply Last reply Reply Quote 0
                      • JiangShenLi
                        JiangShenLi @JonB last edited by

                        @JonB That worked. I'll give more of that a try. Thanks.

                        JiangShenLi 1 Reply Last reply Reply Quote 0
                        • JiangShenLi
                          JiangShenLi @JiangShenLi last edited by

                          Cool news: I've gone as far as stacking, such as a vector (arrow on top) with a dot, to represent the time derivative of a vector. It's working great.

                          Only thing bugging me is having searched some Unicode tables, I can't find a full set of upper-case subscripts. The book I'm coding examples from uses a ton of them. Even a superscript 2 where I could represent a squared variable isn't in the tables I found.

                          1 Reply Last reply Reply Quote 0
                          • JonB
                            JonB last edited by

                            I am not sure there is a complete set of sub scripts in unicode. I'd just use underscore.

                            1 Reply Last reply Reply Quote 0
                            • JonB
                              JonB last edited by

                              https://en.m.wikipedia.org/wiki/Unicode_subscripts_and_superscripts
                              has a big list of unicode characters of the super and subscripts. digits are complete, not all letters are, i think

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post
                              Powered by NodeBB Forums | Contributors