octave_kernel
octave_kernel copied to clipboard
Issue starting Kernel again
Hi, I was just able to resolve a similar issue with the kernel not loading on a 'the littlest jupyterhub' deployment, but once i tried to follow similar steps on a 'jupyterhub-deploy-teaching' deployment, the kernel still hangs when loading a notebook. I have installed the octave_kernel using conda-forge and also made sure to install octave itself with conda.
I ran the command python -m octave_kernel.check
with results:
Also tried
python -c "from octave_kernel.kernel import OctaveEngine; print(OctaveEngine().eval('ones(3)'))"
with output:
Again, thank you for all the help in advance.
Please run pip install -U metakernel
to pick up the most recent metakernel
. I'll update the conda-forge recipe.
cf https://github.com/conda-forge/octave_kernel-feedstock/pull/30
Hi @blink1073, thank you for the reply. I run pip install -U metakernel
command and got these new messages:
The other command: luxchen@local:~$ python -c "from octave_kernel.kernel import OctaveEngine; print(OctaveEngine().eval('ones(3)'))" /opt/conda/lib/python3.6/site-packages/metakernel/_metakernel.py:21: VisibleDeprecationWarning: zmq.eventloop.minitornado is deprecated in pyzmq 14.0 and will be removed. Install tornado itself to use zmq with the tornado IOLoop.
from ipykernel.kernelapp import IPKernelApp Traceback (most recent call last): File "/opt/conda/lib/python3.6/site-packages/pexpect/expect.py", line 111, in expect_loop incoming = spawn.read_nonblocking(spawn.maxread, timeout) File "/opt/conda/lib/python3.6/site-packages/pexpect/pty_spawn.py", line 509, in read_nonblocking raise TIMEOUT('Timeout exceeded.') pexpect.exceptions.TIMEOUT: Timeout exceeded. During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "
after: <class 'pexpect.exceptions.TIMEOUT'> match: None match_index: None exitstatus: None flag_eof: False pid: 25299 child_fd: 7 closed: False timeout: 30 delimiter: <class 'pexpect.exceptions.EOF'> logfile: None logfile_read: None logfile_send: None maxread: 2000 ignorecase: False searchwindowsize: None delaybeforesend: 0.05 delayafterclose: 0.1 delayafterterminate: 0.1 searcher: searcher_re: 0: re.compile('octave.*>')
What does the prompt look like when you launch octave-cli
directly from the terminal?
This is the output I get:
Hmm, it looks like something is wrong with the install. We need to use the cli app in order to communicate properly. Are you able to reinstall octave and try octave-cli again? If you got it from conda-forge, you might try from another source. I was getting segfaults from the conda-forge version.