Point %pastebin to gist #1670

Merged
merged 2 commits into from Apr 28, 2012

Conversation

Projects
None yet
3 participants
@takluyver
Member

takluyver commented Apr 28, 2012

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

This comment has been minimized.

Show comment
Hide comment
@Carreau

Carreau Apr 28, 2012

Member

Change the docstring to github gist maybe.

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

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

This comment has been minimized.

Show comment
Hide comment
@fperez

fperez Apr 28, 2012

Member

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.

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

This comment has been minimized.

Show comment
Hide comment
@takluyver

takluyver Apr 28, 2012

Member

Thanks both, I've made those changes.

Member

takluyver commented Apr 28, 2012

Thanks both, I've made those changes.

@takluyver

This comment has been minimized.

Show comment
Hide comment
@takluyver

takluyver Apr 28, 2012

Member

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

Member

takluyver commented Apr 28, 2012

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

@fperez

This comment has been minimized.

Show comment
Hide comment
@fperez

fperez Apr 28, 2012

Member

Great! Merging now, thanks.

Member

fperez commented Apr 28, 2012

Great! Merging now, thanks.

fperez added a commit that referenced this pull request Apr 28, 2012

Merge pull request #1670 from takluyver/pastebin-gist
Point %pastebin to gist.github.com.

Unfortunately http://paste.pocoo.org has closed down. This updates the %pastebin magic to use gists instead, and adds a -d flag for the user to provide a gist description string.

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.

@fperez fperez merged commit 970a0df into ipython:master Apr 28, 2012

mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014

Merge pull request #1670 from takluyver/pastebin-gist
Point %pastebin to gist.github.com.

Unfortunately http://paste.pocoo.org has closed down. This updates the %pastebin magic to use gists instead, and adds a -d flag for the user to provide a gist description string.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment