The kernel appears to have died. It will restart automatically, when using NLopt

Trying to find a solve a NL system using a derivative-free (LN_COBYLA or GN_ISRES) algorithm with NLopt, within JuMP. I receive the following error message:

The kernel appears to have died. It will restart automatically.

In my attempt to solve the issue, I ran `Pkg.build(“IJulia”) and there is the below error message:

Error executing Jupyter command 'kernelspec': [Errno 'jupyter-kernelspec' not found] 2

Please, are both errors linked? How could I get around the issues?

Thanks for your help
Below is my version info:

Julia Version 0.6.0
Commit 903644385b* (2017-06-19 13:05 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core™ i5-6300U CPU @ 2.40GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, skylake)

There are two ways to solve it:
a). Rebuilding the jupyter with
pip3 install --upgrade --force-reinstall --no-cache-dir jupyter
b). create a new file and rename as jupyter-kernelspec, the file contents as fellow:
#!/usr/bin/python3
import re
import sys

from jupyter_client.kernelspecapp import KernelSpecApp

if name == ‘main’:
sys.argv[0] = re.sub(r’(-script.pyw?|.exe)?$', ‘’, sys.argv[0])
sys.exit(
KernelSpecApp.launch_instance()
)

Best wish!

ref:Error executing Jupyter command 'kernelspec' · Issue #135 · n-riesco/ijavascript · GitHub

1 Like