Skip to content

Point %pastebin to gist #1670

Merged
merged 2 commits into from Apr 28, 2012

3 participants

@takluyver
IPython 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
IPython 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
IPython 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
IPython member

Thanks both, I've made those changes.

@takluyver
IPython member

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

@fperez
IPython 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
Something went wrong with that request. Please try again.