Code Monkey home page Code Monkey logo

Comments (9)

marcomusy avatar marcomusy commented on August 16, 2024

Thanks for spotting the issue, please try the upgraded version:
pip install vtkplotter -U

from vedo.

ga62ris avatar ga62ris commented on August 16, 2024

no attribute errors anymore, but the plotter isn't opening/starting

from vedo.

marcomusy avatar marcomusy commented on August 16, 2024

try to restart the browser? you can try one of the examples in
https://github.com/marcomusy/vtkplotter/tree/master/examples/notebooks

from vedo.

ga62ris avatar ga62ris commented on August 16, 2024

tried different examples, the scripts run through, but plotter isn't starting.

from vedo.

marcomusy avatar marcomusy commented on August 16, 2024

that's weird.
what is you system OS and python version?
do you get any output window when setting embedWindow(False)?

from vedo.

ga62ris avatar ga62ris commented on August 16, 2024

weird indeed. It works when script is run in the terminal.
problem seems to be the IDE (Spyder 3.3.6).
macOS 10.14.6 | python 3.7.0
when adding the suggestion, this occurs:
Error in show(): wrong renderer index 0

from vedo.

marcomusy avatar marcomusy commented on August 16, 2024

OK! I see now the problem.. the ipython console of spyder cannot embed the graphics backend.
One way out is to disable it with e.g.:

from vtkplotter import Cone, show, settings

settings.notebookBackend = False

for i in range(10):
    Cone().x(2*i).color(i) # no variable assigned

# three points, aka ellipsis, retrieves the list of all created objects
show(..., axes=1, viewup='z')

from vedo.

ga62ris avatar ga62ris commented on August 16, 2024

Yes that solves the issue!
Something not directly related to the previous error:
When trying to load a DICOM file(vtkplotter -g pathDICOMfile ), there appears an Error in load()
Is there an example in the example library which shows this ?
Is it possible to both load DICOM single files and DICOM dataset files ?

from vedo.

marcomusy avatar marcomusy commented on August 16, 2024

Cool!

About dicom: to my knowledge dicom files are grouped into directory so you cannot read them individually, this is reflected by the vtkDICOMImageReader class (see
https://vtk.org/doc/nightly/html/classvtkDICOMImageReader.html)

from vedo.

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.