Point %pastebin to gist #1670

Merged
merged 2 commits into from Apr 28, 2012

Projects

None yet

3 participants

@takluyver
Member

Unfortunately http://paste.pocoo.org/ has closed down. This updates the %pastebin magic to use gists instead. The results look like this: https://gist.github.com/2521969

We don't try to use any of the advanced features of gist, such as authenticating to make gists associated with your account. That could be added if there's demand for it, but for now we just send some content and return a URL.

@Carreau
Member
Carreau commented Apr 28, 2012

Change the docstring to github gist maybe.

Do you think a raw_input for an optionnal description could be usefull ?

@fperez
Member
fperez commented Apr 28, 2012

Since gist allows for a file description, it would be nice to add that as an optional flag (the current default is fine if not given). Naming the file could also be done, but I think that's less important. But I think the description field could in fact be useful.

@takluyver
Member

Thanks both, I've made those changes.

@takluyver
Member

And tested them, of course: https://gist.github.com/2522172

@fperez
Member
fperez commented Apr 28, 2012

Great! Merging now, thanks.

@fperez fperez merged commit 970a0df into ipython:master Apr 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment