Giter Club home page Giter Club logo

iterm2-tools's Introduction

iTerm2 Tools

iTerm2 tools for Python

Some tools for working with iTerm2's proprietary escape codes.

Supports Python 2.7, 3.4, 3.5, and 3.6.

See http://www.asmeurer.com/iterm2-tools/index.html for the documentation.

Installation

pip install iterm2_tools

or

conda install -c conda-forge iterm2_tools

IPython shell integration

To enable shell integration in IPython, add

try:
    import iterm2_tools.ipython
    c.TerminalIPythonApp.extensions.append('iterm2_tools.ipython')
except ImportError:
    pass

to your IPython configuration file. You can also enable it just once by running

%load_ext iterm2_tools.ipython

Note that the integration requires IPython > 4.0.0, as earlier versions have a bug that miscounts prompt characters, resulting in an indented "Out" prompt (however, aside from this bug, it should work fine).

Example:

Note the arrows to the left of the In prompts. The blue arrow represents a normal input and a red arrow represents an input that raised an exception.

See http://www.asmeurer.com/iterm2-tools/ipython.html for full documentation.

Library functions

iterm2_tools has library functions for displaying images inline in the terminal and for shell integration. See the docs for more information.

License

MIT

iterm2-tools's People

Contributors

asmeurer avatar carreau avatar

Stargazers

 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

Forkers

carreau iamthad

iterm2-tools's Issues

matplotlib backend

A matplotlib backend to display plots inline in the terminal (in IPython) would be nice. See https://github.com/oselivanov/matplotlib_iterm2 for one way to do it.

An easier way to enable it than what that project uses would also be nice (like import iterm2_tools, %load_ext iterm2_tool.matplotlib or something).

New Release?

Looks like you've done some work on this since then, but the last release on PyPI seems to be from 2016. Happy to help with packaging if I can!

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.