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

rename %%file to %%writefile #3317

Merged
merged 3 commits into from May 15, 2013
Merged

rename %%file to %%writefile #3317

merged 3 commits into from May 15, 2013

Conversation

minrk
Copy link
Member

@minrk minrk commented May 14, 2013

keeps %%file as alias

Alternative to #3313, no behavior is changed.

minrk added 2 commits May 14, 2013 11:24
keeps `%%file` as alias

Alternative to ipython#3313, no behavior is changed.
@@ -2055,11 +2055,13 @@ def init_magics(self):

# Register Magic Aliases
mman = self.magics_manager
# surely, this can't be were magics aliases should be defined?
Copy link
Member

Choose a reason for hiding this comment

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

Rather than a snarky comment that stays in code, either remove this or put the code somewhere better :)

Copy link
Member Author

Choose a reason for hiding this comment

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

I think a FIXME comment is the right thing to do here as a reminder (will turn down the snark, sorry).
The real fix would be to add a layer to Magics for defining aliases, which is a bit more involved than belongs in this PR, I think.

@fperez
Copy link
Member

fperez commented May 15, 2013

Looks good to me, other than the above.

@fperez
Copy link
Member

fperez commented May 15, 2013

Thanks! Merging now...

fperez added a commit that referenced this pull request May 15, 2013
Rename `%%file` to `%%writefile`, leaving `%%file` as an alias for backwards compatibility.
@fperez fperez merged commit b7cb333 into ipython:master May 15, 2013
@minrk minrk deleted the fwrite branch May 15, 2013 23:57
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Rename `%%file` to `%%writefile`, leaving `%%file` as an alias for backwards compatibility.
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