These are chat archives for evhub/coconut

4th
Feb 2019
Evan Hubinger
@evhub
Feb 04 20:49
@leetschau @terrdavis The error you're seeing is likely coming from the jupyter/ipython command being bound to a different version of Python than Coconut is installed. Make sure you've installed Coconut and Jupyter on the same Python version and that it's the only Python version that's accessible from the command line (e.g. via jupyter). You might get some mileage out of uninstalling other Python versions or installing Coconut and Jupyter/IPython with python -m pip instead of conda.
@mphuie Another thing you can do to solve your problem is make use of Coconut's reiterable built-in.
Terry Davis
@terrdavis
Feb 04 22:37
@evhub I'm on windows, using py launcher, so I've been trying to invoke the coconut script directly like so c:\python37\Scripts\coconut.exe --ipython notebook
Is this a supported invocation? Does ipython need to be on the path for this to work?
Terry Davis
@terrdavis
Feb 04 22:45
Tried this:
c:\python37\Scripts\ipython.exe kernelspec install c:\python37\lib\site-packages\coconut\icoconut\coconut --replace
[TerminalIPythonApp] WARNING | Subcommand `ipython kernelspec` is deprecated and will be removed in future versions.
[TerminalIPythonApp] WARNING | You likely want to use `jupyter kernelspec` in the future
[InstallKernelSpec] Removing existing kernelspec in C:\ProgramData\jupyter\kernels\coconut
[InstallKernelSpec] Installed kernelspec coconut in C:\ProgramData\jupyter\kernels\coconut
Terry Davis
@terrdavis
Feb 04 22:55
I can select the coconut kernel in a jupyter notebook, but I haven't figured out how to start an ipython console using the coconut kernel