open a blank notebook, put "hello world" in 1st cell, run and save it, then open by your text editor, then replace "hello world" by your real code. That's my quick hack without thinking too much here: https://github.com/arose/nglview/blob/master/nglview/scripts/nglview.py#L17-L57
Hai On Fri, Jul 22, 2016 at 2:07 AM, Bond <[email protected]> wrote: > Thanks for the response. With the code it is able to convet into ipynb > file. But no kernel is getting opened. any suggestions ? > > > On Thursday, July 21, 2016 at 6:40:29 PM UTC+5:30, takowl wrote: >> >> On 21 July 2016 at 12:00, Bond <[email protected]> wrote: >> >>> Is it possible to convert python script into ipynb file. The script may >>> be in file or as a string ? >> >> >> You can manually convert a few files by copying and pasting the code. >> >> If you want to do it automatically for many scripts, here's a starting >> point: >> https://gist.github.com/takluyver/c7eacd6d52aad4d75cbd48e447f6ad20 >> > -- > You received this message because you are subscribed to the Google Groups > "Project Jupyter" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jupyter/ef7719f7-f2b4-4667-840a-ac70f98c9f1e%40googlegroups.com > <https://groups.google.com/d/msgid/jupyter/ef7719f7-f2b4-4667-840a-ac70f98c9f1e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Project Jupyter" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CAFNMPM_7ex9Vz9P-i20aHDRCxNL%2BgnghrRQr4oCQJhRbddMc-g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
