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

%magic help: display line and cell magics in alphabetical order. #1999

Merged
merged 1 commit into from Jun 21, 2012

Conversation

bfroehle
Copy link
Contributor

%magic help: display line and cell magics in alphabetical order.

@bfroehle
Copy link
Contributor Author

While we are on the subject of %magic, any idea why %magic -brief returns a string, instead of just printing it?

It seems odd to have to run:

x = %magic -brief
print x

@bfroehle
Copy link
Contributor Author

Test results for commit cba3f1f merged into master
Platform: linux2

  • python2.7: OK
  • python3.2: OK (libraries not available: oct2py pymongo rpy2 wx wx.aui)

Not available for testing: python2.6, python3.1

@fperez
Copy link
Member

fperez commented Jun 21, 2012

@bfroehle, I think %magic -brief was added for doc generation at some point, which is obviously a bit of a hack, though I'm not totally sure anymore.

The right answer now would obviously be to move that functionality into the magics manager as an api call, and let the magic call be strictly for human-friendly use with direct printing.

@fperez
Copy link
Member

fperez commented Jun 21, 2012

Change is otherwise clean, thanks! Merging now.

fperez added a commit that referenced this pull request Jun 21, 2012
`%magic` help: display line and cell magics in alphabetical order.
@fperez fperez merged commit d6ffbc8 into ipython:master Jun 21, 2012
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
`%magic` help: display line and cell magics in alphabetical order.
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