tkf / emacs-ipython-notebook

IPython notebook client in Emacs
tkf.github.com/emacs-ipython-notebook/
GNU General Public License v3.0
548 stars 51 forks source link

Save python script file along with notebook? #62

Open rhstanton opened 12 years ago

rhstanton commented 12 years ago

The HTML Web interface has an option to save a python script version along with the notebook (it comments out all the text and output, so you can run the file from the command line). Is there a way to do this with EIN?

Thanks.

tkf commented 12 years ago

Currently EIN does not support this. You can shortcut a little bit using M-x ein:notebook-open-in-browser. Or you can run nbconvert (https://github.com/ipython/nbconvert) script after saving notebook.

mankoff commented 11 years ago

Or pass the --script option when launching ipython --notebook and then a .py file will always be generated along with the .ipynb file.

tkf commented 11 years ago

@mankoff I didn't know this option! Thanks for the info.

rhstanton commented 11 years ago

Indeed – very useful! Thanks.

From: Takafumi Arakaki notifications@github.com<mailto:notifications@github.com> Reply-To: tkf/emacs-ipython-notebook reply@reply.github.com<mailto:reply@reply.github.com> Date: Wednesday, March 27, 2013 1:54 PM To: tkf/emacs-ipython-notebook emacs-ipython-notebook@noreply.github.com<mailto:emacs-ipython-notebook@noreply.github.com> Cc: Richard Stanton stanton@haas.berkeley.edu<mailto:stanton@haas.berkeley.edu> Subject: Re: [emacs-ipython-notebook] Save python script file along with notebook? (#62)

@mankoffhttps://github.com/mankoff I didn't know this option! Thanks for the info.

— Reply to this email directly or view it on GitHubhttps://github.com/tkf/emacs-ipython-notebook/issues/62#issuecomment-15552526.