Coder Social home page Coder Social logo

navis.nblast fails in notebook about navis HOT 5 CLOSED

navis-org avatar navis-org commented on May 29, 2024
navis.nblast fails in notebook

from navis.

Comments (5)

schlegelp avatar schlegelp commented on May 29, 2024

Hmmm... I'm afraid that will be difficult to debug on my end.

To start with, I have no clue why there would be a difference in Jupyter vs Console. Are you using the default iPython kernel for Jupiter? The bit that seems to be breaking is the ProcessPoolExecutor in concurrent.futures.

First could you check what happens if you use nbl = navis.nblast(dps[:3], dps[3:], n_cores=1) as that will not use ProcessPoolExecutor.

Depending on how that pans out, I would consider running some simple examples for ProcessPoolExecutor (from the docs or some tutorial) and see if you get it to break too (i.e. see if it is something navis-specific).

from navis.

schlegelp avatar schlegelp commented on May 29, 2024

Just a thought but it could also be the fancy ipywidget progress bars. What happens if you try this:

navis.set_pbars(jupyter=False)
nbl = navis.nblast(dps[:3], dps[3:], progress=False)

from navis.

dokato avatar dokato commented on May 29, 2024

Indeed, ProcessPoolExecutor was the problem. n_cores=1 helped. Thanks.

from navis.

schlegelp avatar schlegelp commented on May 29, 2024

Let me know if you figure out what the problem with ProcessPoolExecutor is - maybe we can fix/catch it but minimally to leave a trail for others.

from navis.

schlegelp avatar schlegelp commented on May 29, 2024

Just a ping @dokato - any more insights re this?

from navis.

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.