Simple ipython magic that do grep over ipython outputs
Project description
greps
greps is a super simple ipython magic that allow you to use grep over IPython output.
installation
pip install greps
manually loading:
# Inside an IPython shell
%load_ext greps
Automatic loading:
echo "c.InteractiveShellApp.extensions = ['greps']" > ~/.ipython/profile_default/ipython_config.py
Usage
On previous output:
In [1]: {i:i for i in range(3)}
Out[1]:
{0: 0,
1: 1,
2: 2,
}
In [2]: %greps 1
Out[2]: ' 1: 1,\n'
On specific output line:
In [1]: 1
Out[1]: 1
In [2]: 2
Out[2]: 2
In [3]: 3
Out[3]: 3
In [4]: 4
Out[4]: 4
In [5]: %greps -l 2 2
Out[5]: '2\n'
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
greps-1.0.4.tar.gz
(3.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
greps-1.0.4-py3-none-any.whl
(3.4 kB
view details)
File details
Details for the file greps-1.0.4.tar.gz.
File metadata
- Download URL: greps-1.0.4.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.7 Linux/6.2.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc455c2b1c992e13984e4ebc66cd7729bbac63f462186a33876c935a96f079b1
|
|
| MD5 |
1a45c5fb41686198eeb6dce92b91dd72
|
|
| BLAKE2b-256 |
1bde3f8cac3e7d56a0c34ff856ac314487acd7ccc4202d603eb8cf317219b691
|
File details
Details for the file greps-1.0.4-py3-none-any.whl.
File metadata
- Download URL: greps-1.0.4-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.7 Linux/6.2.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fbbdbc1192b16dfaaf0c65a44b363d5b7a0f010145d2194a9bf65f8a16271f0
|
|
| MD5 |
07f2b8e8db8d8d77be65771abf956f70
|
|
| BLAKE2b-256 |
3b329cf39bf67e8629c2c33c5c9069d24a7d11e8ec686bf37d37217f77a70a02
|