History to Gist - line magic for Ipython
Project description
GistMagic
This package performs upload to GitHub Gist of last X lines of your Ipython session history.
Quickstart
%pip install gistmagic
%load_ext gistmagic
...
%gistmagic -5
Description
- You need to generate a GitHub token. (Please trim its purpose and validity)
- You need to install gistmagic
- GistMagic is extention used only from ipython.
- Your token is kept in memory and prompted every time gistmagic extention is loaded.
- Gistmagic will not include in your Gist any other lines that the last X lines which start with In or Out.
- Gistmagic will re-arrange the sequence of In/Out in Gist as this the only snipped you have created in your current ipython session.
In REPL help
In [3]: %gistmagic?
Docstring:
Upload code to gist
Usage:
%load_ext gistmagic
%gistmagic -X (%gistmagic -5 / %gistmagic -25)
The argument -X is representing the last X In/Out sequences
How to create GitHub token
Quite easy. Chech it out from here: GitHub token tutorial
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gistmagic-0.0.2.tar.gz
(3.7 kB
view details)
Built Distribution
File details
Details for the file gistmagic-0.0.2.tar.gz
.
File metadata
- Download URL: gistmagic-0.0.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c33b75f048d6832b341622ce7ee15b8c3284b8009da7783cecc052b0f0cc7608 |
|
MD5 | a2565f4bff71960bf59f2bb5d4abc0f8 |
|
BLAKE2b-256 | afd815785272026ced7128ae08ebaec57a8171efee4f6344eb42941b0ca60e0b |
File details
Details for the file gistmagic-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: gistmagic-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1aae147a204a7d4e3da16211eb1dd687543990265f6aa157fa49fcd5ee2c271 |
|
MD5 | bb8a40cba58eba88a20fdc92107257bd |
|
BLAKE2b-256 | 196b7a2ab1a920324f7b4b1042accf10c0c408d52500262d42bd7c73c68eb4b1 |