Created
July 13, 2016 22:53
-
-
Save redraw/d44032f6c84f9753c0d675f0921e464b to your computer and use it in GitHub Desktop.
pipe json string from stdin into ipython
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function jsonloads { | |
python -c 'import json,sys,IPython; stdin=sys.stdin.read(); sys.stdin=open("/dev/tty"); data=json.loads(stdin); IPython.embed(header="JSON loaded in \"data\" object.")' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment