Code Monkey home page Code Monkey logo

pythonista_startup's Introduction

pythonista_startup

Bits and pieces from my pythonista_startup folder.

Installation

To install a single script

If you don't have a pythonista_startup file/folder already, create a new file named pythonista_startup.py under Documents or site-packages.

Each script is contained in a single function named run. Copy the entire function block from the script and paste it into your pythonista_startup file, rename the run function to something different, and then call it.

For example, a pythonista_startup.py with only enable_faulthandler could look like this (full example):

def enable_faulthandler():
    import ctypes
    import datetime
    # ... rest of the pasted code ...

enable_faulthandler()

To install the entire package

Back up your existing pythonista_startup file/folder, then download this repo, name the folder pythonista_startup and put it under Documents or site-packages. The easiest way to do this is to run these commands in stash:

mkdir site-packages/pythonista_startup
cd site-packages/pythonista_startup
git clone https://github.com/dgelessus/pythonista_startup.git

And to update:

cd site-packages/pythonista_startup
git pull

pythonista_startup's People

Contributors

dgelessus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pythonista_startup's Issues

idea: restore command history

[str(h) for h in UIApplication.sharedApplication().keyWindow().rootViewController().accessoryViewController().consoleViewController().history()]

exposes the current console command history as a list of strings. This can also be set via

UIApplication.sharedApplication().keyWindow().rootViewController().accessoryViewController().consoleViewController().history=['test','ing']

is it possible to enable a stdin hook which stores history to a file, which is then restored on reload? or perhaps an atexit which reads and stores current history.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.