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

Sliently running code in clipboard (with paste, cpaste and variants) #2843

Closed
amelio-vazquez-reina opened this issue Jan 24, 2013 · 1 comment
Milestone

Comments

@amelio-vazquez-reina
Copy link

Hi there!

Apologies if this is not the right place to ask this question, but where can I find more information about %paste, %cpaste and %autoindent? I looked at the documentation, but I could not find more information about these specific magic commands.

Also, is there a way to have IPython silently run the code in the clipboard? i.e. have it not print the code I want it to run, but only the output (if there is any)

Thanks!

@minrk
Copy link
Member

minrk commented Jan 31, 2013

The best way to find information is to use ? and ??:

%autoindent?
....
Docstring:  Toggle autoindent on/off (if available).

?? will show you the code.

Also, is there a way to have IPython silently run the code in the clipboard?

From %paste?:

%paste -q

@minrk minrk closed this as completed Jan 31, 2013
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

No branches or pull requests

2 participants