Open rhstanton opened 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.
Or pass the --script
option when launching ipython --notebook
and then a .py file will always be generated along with the .ipynb file.
@mankoff I didn't know this option! Thanks for the info.
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.
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.