These are chat archives for ipython/ipython

3rd
Nov 2018
Guy Sviry
@guysv
Nov 03 2018 15:16
Is it possible to run a kernel.json without installing it?
Min RK
@minrk
Nov 03 2018 15:26
What do you mean?
Guy Sviry
@guysv
Nov 03 2018 15:26
jupyter console --help-all offers --KernelManager.kernel_cmd, but kernel_cmd recommends kernel_spec, but --KernelManager.kernel_spec does not exist
Min RK
@minrk
Nov 03 2018 15:27
Ah. Not sure. Maybe not.
Guy Sviry
@guysv
Nov 03 2018 15:28
I want to launch my own kernel from jupyter_console, but I want to be able to accept last-moment arguments to include in the kernel spec
i.e. an entry point in my kernel imykernel that launches jupyter_console with my kernel + arguments to imykernel
I could do it with environment variables but its messy
Min RK
@minrk
Nov 03 2018 15:33
The easiest way to do that now is environment variables
Guy Sviry
@guysv
Nov 03 2018 15:48
Alright, thanks for the feedback :)
Guy Sviry
@guysv
Nov 03 2018 16:11
While were at it, how do I pass --KernelManager.kernel to jupyter_console via code?
something like:
from jupyter_console import app

if __name__ == "__main__":
    # pass my kernel name to jupyter_console
    ???
Guy Sviry
@guysv
Nov 03 2018 16:20
also it is not so obvious how to pass environment variables to jupyter_console