GithubHelp home page GithubHelp logo

Comments (8)

golf-player avatar golf-player commented on July 26, 2024 1

In this case, I don't see the issues as being specific to async vs sync. These are attribute errors, and the kernel manager hasn't even been created yet.

As for the cases where things don't shutdown, that appears to be intentional.

Agreed, it would make sense to not worry about 0.3.0 as things work as expected in 0.2.0

from nbclient.

choldgraf avatar choldgraf commented on July 26, 2024 1

many thanks for the patch @golf-player 👍

from nbclient.

golf-player avatar golf-player commented on July 26, 2024

CC: @kevin-bates

from nbclient.

kevin-bates avatar kevin-bates commented on July 26, 2024

Hi @golf-player - thanks for the copy. I haven't used nbclient but have experienced odd issues when mixing @gen.coroutine/yield methods with those using async/await. Are you seeing any 'method not awaited' messages or anything of that ilk buried in the logs?

Once NB 6.1 is finalized, I'll be merging the async RMK in EG. I'd like to get your changes merged prior to that, so I wonder if holding off looking into nbclient 0.3.0 would be worthwhile until the async RMK is, um, "out of the rough and in the fairway". (sorry, couldn't resist)

from nbclient.

davidbrochart avatar davidbrochart commented on July 26, 2024

When I run the above, but with reset_kc=True, I run into a lot of issues, first of which is that in execute, self.kc has not been initialized from the class before self._async_cleanup_kernel is called, so that fails and while it's handling that failure, it fails again on self.km.cleanup() since self.km doesn't exist.

We should probably check if self.kc is not None in _async_cleanup_kernel, in case self.km doesn't exist.

from nbclient.

golf-player avatar golf-player commented on July 26, 2024

@davidbrochart thanks for the reply. Agreed, that's probably the way to go.

If y'all are willing, I can make a pull request changing that

from nbclient.

davidbrochart avatar davidbrochart commented on July 26, 2024

That would be great!

from nbclient.

golf-player avatar golf-player commented on July 26, 2024

#61

not much to it, tbh.

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.