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/6kvane7mey.fsf%40shaula.iup.uni-bremen.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to