• JonB

    From the main file browser (from the upper left menu button in the editor), find Python Modules. Then under that you should see site-packages, or site-packages-3. Under one of those you will find a stash folder, also anything you have installed with pip. Just delete the stash folder and anything you thing was installed by mistake, or was installed by pip. You can use the edit menu to select a folder then trash it.

    You might be able to just rerun the install script, after doing a force quit.

    posted in Pythonista read more
  • JonB

    You should force quit pythonista, then restart, and see if it is still broken.

    You can always just delete the stash folder, and reinstall. You don't need to reinstall pythonista.

    posted in Pythonista read more
  • JonB

    It might be useful to others if you post your code someplace -- the HTML /JavaScript, and whatever webview handler code -- a few folks have asked about xslt over the years, and it sounds like you got it working.

    posted in Pythonista read more
  • JonB

    @aartiyadav numpy comes installed with pythonista, you cannot update it, due to how iOS requires compiled code to signed by the same app developer.

    posted in General Discussion read more
  • JonB

    @3ryck there are a few ways to import files into pythonista... iCloud, share sheet, copy/paste.

    Once in pythonista, move them into the My iPad folder (aka ~/Documents), then you can import them from scripts in the same folder. Alternatively, you may copy them to site-packages, where they are accessible to all scripts

    posted in Pythonista read more
  • JonB

    @trey Ahh, latest version has a new view controller structure.

    You can get to the console view controller like so:

    >>> app=UIApplication.sharedApplication()
    >>> cvc=app._rootViewControllers()[0].accessoryViewController().tabViewControllers()[0]
    >>> cvc.outputFont()
    <b'UICTFont': <UICTFont: 0x14dd34f50> font-family: "Menlo-Regular"; font-weight: normal; font-style: normal; font-size: 14.00pt>
    

    posted in Pythonista read more
  • JonB

    See some of the examples in this thread
    https://forum.omz-software.com/topic/2554/how-can-i-get-console-width/22

    In particular, consoleViewController is a objc method of the app delegate. There are some examples of how to get the default font.

    There are some methods to load true type fonts... Under UIFont iirc.

    posted in Pythonista read more
  • JonB

    Nodebb has various plugins, I'm sure there is a voting plugin. But it is likely not installed.

    posted in General Discussion read more
  • JonB

    Any separate run_action calls all get called in parallel, essentially. So if you have a sequence of actions, one of which is a wait, you need to create an Action.sequence that captures the actions in order.

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!