Don't forget to migrate from 'ipython notebook' to 'jupyter notebook' the CL argument parsing may be different. -- M
On Jun 29, 2017 19:31, "Denis Akhiyarov" <[email protected]> wrote: > Hi Andreas, > > Looks like your suggestion is still not possible even with a wrapper > script: > > https://github.com/ipython/ipython/issues/9342 > > So I guess let me give a try to nbopen again. > > Thanks, > Denis > > On Thursday, June 29, 2017 at 12:07:22 PM UTC-5, Andreas Hilboll wrote: >> >> Denis, >> >> this should be possible by writing your own wrapper script. Currently, >> you start the ipython.exe process with "notebook" and your filename as >> parameters. >> >> You should be able to write a script, say, "notebookwrapper.cmd", in >> which you check if there already is an ipython.exe process running, and >> if so, use the appropriate command line. Maybe you have to work with a >> lockfile or the like. >> >> This script, you would then use as >> >> assoc .ipynb=IPYNBFILE >> ftype IPYNBFILE="C:\path\to\notebookwrapper.cmd" "%%1" >> >> Sorry to be a bit vague, but this should be enough to get you thinking >> into the right direction. Unfortunately I cannot help in more detail >> since I don't know Windows. >> >> Cheers, >> Andreas. >> >> Denis Akhiyarov writes: >> >> > I'm using basic integration of .ipynb files with Windows Explorer: >> > >> > https://github.com/ContinuumIO/anaconda-issues/issues/267 >> > >> > However each notebook spawns a new notebook server. >> > >> > Is there any way to force spawning new notebooks in the same notebook >> > server & port using config files from jupyter? >> > >> > in CMD: >> > >> > assoc .ipynb=IPYNBFILE >> > ftype IPYNBFILE="C:\Python\Python35\Scripts\ipython.exe" notebook >> "%%1" >> > >> > In Registry (Regedit) >> > >> > [HKEY_CLASSES_ROOT\Directory\Background\shell\ipynb] >> > @="Open IPython Notebook server here" >> > >> > [HKEY_CLASSES_ROOT\Directory\Background\shell\ipynb\command] >> > @="\"C:\\Python\\Python35\\Scripts\\ipython.exe\" \"notebook\" \"%1\"" >> > >> > [HKEY_CLASSES_ROOT\Directory\shell\ipynb] >> > @="Open IPython Notebook server here" >> > >> > [HKEY_CLASSES_ROOT\Directory\shell\ipynb\command] >> > @="\"C:\\Python\\Python27\\Scripts\\ipython.exe\" \"notebook\" \"%1\"" >> > -- > 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/9a701c28-8c6a-43e7-8f2f-9ce06775bf46%40googlegroups.com > <https://groups.google.com/d/msgid/jupyter/9a701c28-8c6a-43e7-8f2f-9ce06775bf46%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/CANJQusVzzzQqsgcUXKY85%3DjLcHi%2BKY3rk4U1gFeRTWWb%3Dx7o2w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
