GithubHelp home page GithubHelp logo

Comments (4)

MSeal avatar MSeal commented on August 30, 2024

Thanks for raising, sorry for not having a prompt response. I've got this issue queued to look into. It's likely the recent async changes is the root cause, though I too am not sure exactly where that's happening off-hand.

from nbclient.

davidbrochart avatar davidbrochart commented on August 30, 2024

@JoostvDoorn by default there is no timeout for cell execution. It tried your example and adding a timeout fixes the issue, e.g.:

client = NotebookClient(nb, kernel_name="python3", timeout=1)

raises a DeadKernelError("Kernel died") exception.
I'm wondering if we should not check regularly if the kernel is alive during the execution, not just if the execution timed out.

from nbclient.

JoostvDoorn avatar JoostvDoorn commented on August 30, 2024

@davidbrochart That's true, but that comes with the limitation that if the timeout time is exceeded but the kernel is still running okay it will give a CellTimeoutError.

from nbclient.

davidbrochart avatar davidbrochart commented on August 30, 2024

You're right, so we should regularly check for the kernel to be alive, independently of the timeout. I will open a PR.

from nbclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.