Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asmeurer/iterm2-tools
iTerm2 tools for Python
https://github.com/asmeurer/iterm2-tools
image ipython iterm2 terminal
Last synced: 6 days ago
JSON representation
iTerm2 tools for Python
- Host: GitHub
- URL: https://github.com/asmeurer/iterm2-tools
- Owner: asmeurer
- License: mit
- Created: 2015-08-04T21:19:01.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-04-24T07:44:10.000Z (over 6 years ago)
- Last Synced: 2024-12-07T10:23:44.843Z (19 days ago)
- Topics: image, ipython, iterm2, terminal
- Language: Python
- Homepage: http://www.asmeurer.com/iterm2-tools/index.html
- Size: 575 KB
- Stars: 20
- Watchers: 6
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README
- Changelog: CHANGELOG.rst
- License: LICENSE
Awesome Lists containing this project
README
# 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:
passto 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:
![](docs/ipython-example.png)
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](http://www.asmeurer.com/iterm2-tools/) for more information.## License
MIT