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

added a quiet option to %cpaste to suppress output #4649

Merged
merged 1 commit into from Dec 14, 2013
Merged

added a quiet option to %cpaste to suppress output #4649

merged 1 commit into from Dec 14, 2013

Conversation

arunpersaud
Copy link

Useful when, e.g., using ipython as the interpreter for emacs org-mode.
Emacs copies python code from one buffer to ipython and can use the output
in the original buffer. Using -q will remove unwanted output.

if opts.has_key('q'):
quiet = True
else:
quiet = False
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quiet = ('q' in opts) ?

@takluyver
Copy link
Member

This looks OK to me. You've based this on an old branch, though - it looks like you forked from fperez/ipython instead of ipython/ipython - so it doesn't merge cleanly. You'll need to rebase or cherry pick the commit onto a recent checkout of the master branch.

Useful when, e.g., using ipython as the interpreter for emacs org-mode.
Emacs copies python code from one buffer to ipython and can use the output
in the original buffer. Using `-q` will remove unwanted output.
@arunpersaud
Copy link
Author

tried the rebase. Hope everything worked OK ;)

@takluyver
Copy link
Member

Thanks, the rebase seems to have done the trick. Merging.

takluyver added a commit that referenced this pull request Dec 14, 2013
added a quiet option to %cpaste to suppress output
@takluyver takluyver merged commit 10151c2 into ipython:master Dec 14, 2013
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
added a quiet option to %cpaste to suppress output
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

2 participants