These are chat archives for evhub/coconut

5th
Feb 2019
Evan Hubinger
@evhub
Feb 05 00:12
@terrdavis You are correct that Jupyter/IPython must be on your PATH for coconut --ipython notebook to work.
terrdavis
@terrdavis
Feb 05 00:29
@evhub Is there any chance for supporting my use case? Or do you know of a way to start an ipython console with another installed kernel?
terrdavis
@terrdavis
Feb 05 00:54
So far the only solution I've found is to:
  1. Install the coconut kernel c:\python37\Scripts\ipython.exe kernelspec install c:\python37\lib\site-packages\coconut\icoconut\coconut --replace
  2. Start the coconut kernel c:\python37\Scripts\jupyter-kernel.exe --kernel=coconut
  3. Start an ipython console using the running kernel c:\Python37\scripts\jupyter-console.exe --existing [kernel-hash from step 2].json
Evan Hubinger
@evhub
Feb 05 02:17
@terrdavis At the very least, I think you should be able to simplify that process by doing c:\Python37\scripts\jupyter-console.exe --kernel coconut. Though, unfortunately, I don't know of a good way for Coconut to start a Jupyter console without invoking the command line, so I don't think there's a way to make coconut --jupyter console not require you to have the jupyter you want on your PATH.
terrdavis
@terrdavis
Feb 05 17:26
@evhub That command worked! Thanks for the tip.