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

File => Save as '.py' saves magic as code #2922

Closed
arokem opened this issue Feb 12, 2013 · 3 comments
Closed

File => Save as '.py' saves magic as code #2922

arokem opened this issue Feb 12, 2013 · 3 comments
Milestone

Comments

@arokem
Copy link

arokem commented Feb 12, 2013

Saving a notebook as a .py file, I noticed that the cell:

%pylab inline

Was exported as is to the '.py file (not commented). Should lines with magics be commented on export?

@minrk
Copy link
Member

minrk commented Feb 12, 2013

yup - it's wrong. There are two things to do here:

  1. save as .ipy, an IPython script (what we actually do)
  2. save the transformed pure-Python input as .py (what we say we do)

@ArcTanSusan
Copy link
Contributor

I currently dont see the File --> Save as option in the notebook menu.

@minrk
Copy link
Member

minrk commented Dec 22, 2013

This is fixed by PR #4656

@minrk minrk closed this as completed Dec 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants