Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Point %pastebin to gist #1670

Merged
merged 2 commits into from Apr 28, 2012
Merged

Point %pastebin to gist #1670

merged 2 commits into from Apr 28, 2012

Conversation

takluyver
Copy link
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
Copy link
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
Copy link
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
Copy link
Member Author

Thanks both, I've made those changes.

@takluyver
Copy link
Member Author

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

@fperez
Copy link
Member

fperez commented Apr 28, 2012

Great! Merging now, thanks.

fperez added a commit that referenced this pull request Apr 28, 2012
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
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants