Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support kernel interrupts #5

Closed
andystoneucl opened this issue Mar 10, 2015 · 6 comments
Closed

Support kernel interrupts #5

andystoneucl opened this issue Mar 10, 2015 · 6 comments

Comments

@andystoneucl
Copy link

Very promising project, I love being able to use Matlab through Jupyter, but it appears that the 'interrupt kernel' button doesn't do anything (on Windows 8.1 at least).

If I forget a semicolon in a big Matlab loop then I can hit ctrl+C in the normal Matlab command window to stop the loop (otherwise it takes forever writing massive quantities of output to the screen). Without the interrupt kernel option the only options you are left with are waiting for it to eventually finish or killing the whole kernel - which is undesirable if you then have to re-run loads of slow stuff to get back to the same point.

Had a quick look at the ipython/Jupyter documentation but couldn't see where kernel interrupts might need to be implemented.

@blink1073
Copy link
Contributor

Hi @andystoneucl, thanks for your interest. I think the ability to interrupt the Matlab process is actually something that should go in pymatbridge, and may not work on Windows. Once that is in place, we can use that functionality here.

@blink1073
Copy link
Contributor

See arokem/python-matlab-bridge#164.

@andystoneucl
Copy link
Author

Thanks. Make sense that it belongs in pymatbridge.

Hopefully it's possible to implement somehow - I don't know if the mechanics of how Jupyter connects to Matlab is fundamentally different to how it connects to Python, but the interrupt button works for the regular Python kernel.

@anntzer
Copy link
Collaborator

anntzer commented May 25, 2016

FWIW the native kernel seems to support this with no problem (crosspost to #48).

@anntzer
Copy link
Collaborator

anntzer commented Sep 1, 2016

I have a solution but there's a separate bug in wurlitzer that affects long outputs (see above), so that'll depend on it being fixed.

Edit: pushed the fix to master, despite the continuing issue with wurlitzer.

@anntzer
Copy link
Collaborator

anntzer commented Sep 7, 2016

Vendorized wurlitzer with a fix. Lack of windows support remains an issue; see #59.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants