• Phlurim

    Ok. Thx.
    I tried installing tabulate() via Pythonista on my iPad Pro. But the directions seem to require a Mac keyboard, versus iPad’s on-screen keyboard?! Does this mean I have to connect an Apple keyboard to my iPad in order to be able to install tabulate()? If so, I don’t see this as a problem. Thank you.

    posted in Pythonista read more
  • Phlurim

    Can’t find any info about using tabulate() in Pythonista on my iPad Pro. If not feasible, are there any alternatives to tabulate()?

    posted in Pythonista read more
  • Phlurim

    Thx for the code snippet. I see what’s happening here w.r.t. json.dump & json.load, but still not clear on the format of the data that ends up in ‘floats.txt’, ‘out_file’ , and ‘in_file’ after each of these json methods. I’m guessing ‘floats.txt’ always contains string formatted data only. But what’s in ‘out_file’ , and ‘in_file’! In which case, how then can I read it - retrieve it from floats.txt - and use it as float variables instead of string variables? (This probably gives a good idea just where I am in learning Python - I’ve a looong way to go!)

    posted in Pythonista read more
  • Phlurim

    Thx. I think my problem boils down to a personal lack of rudimentary understandithe form that my floating point data must be converted to before Python will allow it to be written to my file, via write().

    I think I’m suppose to convert each floating point data item to a representative text string via str(), before writing to my file via write(). I understand that, by doing this conversion, my file will contain ASCII strings that are the text equivalents of my original raw floating point data. I believe that, if I fail to do this conversion prior to Python will likely not save my data to my file as floating point numbers.

    I would much appreciate any feedback as to whether or not my interpretation is on track.

    Thank you … Phlurim

    posted in Pythonista read more
  • Phlurim

    After creating my own file (“w”), I would like to know how to:

    • Write floating point data to file
    • Print (or otherwise view) entire contents of file to confirm it contains all the float data I wrote to the file

    After re-opening my file (“r”), I would like to know how to:

    • Read content of this file, line by line.
    • Print (or otherwise view) contents of file to re-confirm it contains all the float data I wrote to it
    • Use the float data contained in my file for doing math calculations
    • Save calculation results (floats) to another file
    • Print (or otherwise view) contents of this other file to re-confirm it contains all the calculation results

    posted in Pythonista read more
  • Phlurim

    I’ve had occasional puzzling error msgs while using Python’s built-in modules (import math for example). It seems that Python accepts either ‘math.pi’ or ‘pi’ in my main code. At other times, not.
    What are the specific syntax rules for stipulating, in main code, the names of the functions inside imported Python modules.

    Supplementary question: My code includes a function. My function calls a function inside a built-in Python module. Is it necessary to import the Python module from my main code, or from inside my function?

    posted in Pythonista read more
  • Phlurim

    Thanks. I always run Pythonista while connected to the Internet. By the internet version, do you mean via the documentation link I can open from within Pythonista itself?

    posted in Pythonista read more
  • Phlurim

    As a Python novice, it seems somewhat cumbersome creating, revising & running Pythonista 3.3 code using the standard touch screen keyboard on my iPad 15.4.1. I would appreciate advice on alternative iPad keyboard(s) that would possibly work more "seamlessly" with Pythonista.

    posted in Pythonista read more
  • Phlurim

    I use Pythonista 3.3 on my iPad 15.4.1. Would I be totally nuts to try to print out all the 'help' stuff in Pythonista's documentation link? How many pages?

    posted in Pythonista read more
  • Phlurim

    Would like to ask a couple final questions, if I may. I don't see any 'save to file' menu item in Pythonista. Also, I feel I'm too rudimentary right now to have my code files accessible through protocols like integrated collaboration. Perhaps later, when/if I might eventually achieve Python competancy.
    (1) Which Pythonista links, or commands, should I click on to manually save my personal code files to my own iPad's 'work' folder, or alternatively to a peripheral thumbdrive/Flash drives?
    (2) After that, will Pythonista still continue to auto-save my code files to its own default auto-save folder?

    Cheers ... Phlurim

    posted in Pythonista read more
  • Phlurim

    Thanks. I think I've correctly captured all of what you said. But just to be sure, I want to redo a wee bit more parsing from a logic, syntax & intended context perspective, in order to fully grasp the issue (am I making any sense, or overthinking it?!?)
    My previous extensive coding experience goes back more than 5 decades. I wrote, compiled, debugged, and executed advanced Fortran code on DEC/UNIX, IBM, and UNIVAC machines. I've learned over the past 3-4 months, that the rudimentary computer coding concepts are still in part of my DNA - sorta like never forgetting how to swim or ride a bike!
    Python especially blows me away with certain concepts such as IDEs that allow me to freely copy, incorporate, and execute snippets of other programmers' code (even if I sometimes don't always understand everything in their snippets!) This aspect of Python is an exremely valuable aid for newbies such as me who learn faster and more effectively by trying and doing ('trial-&-error'!) Thanks again for your prompt response and helpful comments.

    posted in Pythonista read more
  • Phlurim

    Thank you. I’ll definitely try this.

    posted in Pythonista read more
  • Phlurim

    I am an absolute newbie to Python on my iMac, and to Pythonista on my iPad. {So far, Pythonista seems a bit more user-friendly for me, at my current level of knowledge.} My learning is going well, but slowly. The following are some initial questions w.r.t. Pythonista in particular:
    I have a few test .py programs I've created with Pythonista. I appreciate that they get saved automatically, but I have no idea where they’re saved to. I created a 'work' folder in my iPad, but Pythonista doesn't appear to save any of my work to it. My ‘work’ folder is always empty.
    Is there a reference someone could give me, please, pointing to any Pythonista (or Python) documentation that explains where my .py files are getting stored to automatically; plus, how might I be able to change the auto-save location to my iPad’s ‘work’ folder?
    I have similar questions about IDE, and some other newbie questions, but they’ll have to be for another day.

    Thank you … Phlurim

    posted in Pythonista read more
Internal error.

Oops! Looks like something went wrong!