[IPython-User] Notebook manager and POST args
Wed Oct 30 02:11:57 CDT 2013
URLs changed a week ago or so,
I would suggest updating.
That Being said, it is not possible yet, but we will need a mechanisms like that at some point to decide which kernel to start.
Envoyé de mon iPhone
> Le 30 oct. 2013 à 06:26, Ian Stokes-Rees <firstname.lastname@example.org> a écrit :
> If I'm in the notebook manager, the notebook links look something like:
> I would like to add a POST argument "foo=42" to the notebook link to configure the kernel that gets started.
> IPython.html.services/kernels/handlers.MainKernelHandler seems to be the place to *capture* that argument with:
> foo = self.get_argument('foo', default=42)
> This will then allow me to pass "foo" through to the start_kernel call as:
> self.kernel_manager.start_kernel(notebook_id, cwd=..., foo=foo)
> The problem I have is that I can't find where the interface is between a URL like the one above and what ends up in MainKernelHandler:
> I would like the equivalent of "&foo=42" added on to URL and available to me.
> TIA for any suggestions of how to tackle this.
> IPython-User mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-User