• 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

Internal error.

Oops! Looks like something went wrong!