Giter VIP home page Giter VIP logo

Comments (5)

hanayik avatar hanayik commented on July 18, 2024

@AnthonyAndroulakis , not sure exactly what's happening here, but the most recent version of Niivue (0.30.0) has changed how it handles the name property here

name: 'mni152',
. I would remove the name prop unless you need it for some reason (e.g. query strings in the URL, so you're not able to detect the file extension).

from ipyniivue.

AnthonyAndroulakis avatar AnthonyAndroulakis commented on July 18, 2024

I'm working on moving to to the latest Niivue version. #4 details an issue I had when I last tried to move it over.
edit: fixed issue #4

from ipyniivue.

AnthonyAndroulakis avatar AnthonyAndroulakis commented on July 18, 2024

I was able to make a widget that just draws a point to a canvas with a webgl2 canvas (and get it to display without having to resize). I'm thinking perhaps the issue lies with not using await/async when using Niivue.
For reference, I am using https://observablehq.com/@jozanza/webgl2-drawing-points to test the webgl2 context.

update: I tried using async/await and it did not fix the issue.

from ipyniivue.

neurolabusc avatar neurolabusc commented on July 18, 2024

@AnthonyAndroulakis I can not run your demo:

Looking for: ['jupyterlab=3', 'pip', 'ipyevents', 'ipywidgets', 'jupyter_ui_poll', 'traitlets']


Could not solve for environment specs
The following package could not be installed
└─ jupyter_ui_poll does not exist (perhaps a typo or a missing channel)

I do wonder if we need to await the canvas:

document.onreadystatechange = function () {
    if (document.readyState === "interactive") {
        // Your code.
    }
}

from ipyniivue.

christian-oreilly avatar christian-oreilly commented on July 18, 2024

from ipyniivue.

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.