bpython-gist is a pastebin_helper extension for bpython
What you get:
- Clean Code: the exported output can be run as a python script with no modification. Any output values and errors from the repl are preserved as comments.
- Gist Integration: the export is uploaded to an anonymous gist, giving you the ability to star it, fork it, or embed it.
Your repl
The default behavior exports indentation guides and uses bpaste
The improved behavior removes indentation guides, comments out and annotates the output, then uploads the result as an anonymous gist
- python 2.7 or greater
- bpython version 0.12 Download the latest release
-
Download gist.py, and add it to a location in your path.
-
Open your bpython configuration file, or create one if it doesn't exist.
cd ~
mkdir .bpython; chdir .bpython
touch config
- Add the following entries to your config file
[general]
pastebin_helper=gist.py
You're done!