Coder Social home page Coder Social logo

Comments (2)

juanbolso avatar juanbolso commented on June 5, 2024

Hi again,

I have installed all from scratch because I found that the widgets.py file I had in my pc was (for some strange reason) different from the widgets.py file in the master branch of the ipyvolume repo.

Now I have a different error which may be due to a circular import (according to the error message):

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
[/home/jpons/Desktop/CondaEnv/CODIGOS/Hamiltoniano/Hasigma_planetario/MODULAR/planetHsurface_withIntegration.ipynb](https://file+.vscode-resource.vscode-cdn.net/home/jpons/Desktop/CondaEnv/CODIGOS/Hamiltoniano/Hasigma_planetario/MODULAR/planetHsurface_withIntegration.ipynb) Cell 2 line 1
     [14](vscode-notebook-cell:/home/jpons/Desktop/CondaEnv/CODIGOS/Hamiltoniano/Hasigma_planetario/MODULAR/planetHsurface_withIntegration.ipynb#W1sZmlsZQ%3D%3D?line=13) from IPython.display import display
     [15](vscode-notebook-cell:/home/jpons/Desktop/CondaEnv/CODIGOS/Hamiltoniano/Hasigma_planetario/MODULAR/planetHsurface_withIntegration.ipynb#W1sZmlsZQ%3D%3D?line=14) from ipywidgets import VBox
---> [16](vscode-notebook-cell:/home/jpons/Desktop/CondaEnv/CODIGOS/Hamiltoniano/Hasigma_planetario/MODULAR/planetHsurface_withIntegration.ipynb#W1sZmlsZQ%3D%3D?line=15) from ipyvolume import *
     [17](vscode-notebook-cell:/home/jpons/Desktop/CondaEnv/CODIGOS/Hamiltoniano/Hasigma_planetario/MODULAR/planetHsurface_withIntegration.ipynb#W1sZmlsZQ%3D%3D?line=16) import ipyvolume as ipv # https://ipyvolume.readthedocs.io/en/latest/install.html
     [18](vscode-notebook-cell:/home/jpons/Desktop/CondaEnv/CODIGOS/Hamiltoniano/Hasigma_planetario/MODULAR/planetHsurface_withIntegration.ipynb#W1sZmlsZQ%3D%3D?line=17) from matplotlib import cm

File [~/Desktop/CondaEnv/miniconda3/envs/astroEnv/lib/python3.11/site-packages/ipyvolume/__init__.py:8](https://file+.vscode-resource.vscode-cdn.net/home/jpons/Desktop/CondaEnv/CODIGOS/Hamiltoniano/Hasigma_planetario/MODULAR/~/Desktop/CondaEnv/miniconda3/envs/astroEnv/lib/python3.11/site-packages/ipyvolume/__init__.py:8)
      6 from ipyvolume import datasets  # noqa: F401
      7 from ipyvolume import embed  # noqa: F401
----> 8 from ipyvolume.widgets import *  # noqa: F401, F403
      9 from ipyvolume.transferfunction import *  # noqa: F401, F403
     10 from ipyvolume.pylab import *  # noqa: F401, F403

File [~/Desktop/CondaEnv/miniconda3/envs/astroEnv/lib/python3.11/site-packages/ipyvolume/widgets.py:30](https://file+.vscode-resource.vscode-cdn.net/home/jpons/Desktop/CondaEnv/CODIGOS/Hamiltoniano/Hasigma_planetario/MODULAR/~/Desktop/CondaEnv/miniconda3/envs/astroEnv/lib/python3.11/site-packages/ipyvolume/widgets.py:30)
     22 from ipyvolume.traittypes import Image
     23 from ipyvolume.serialize import (
     24     array_cube_tile_serialization,
     25     array_serialization,
   (...)
     28     texture_serialization,
     29 )
---> 30 from ipyvolume.transferfunction import TransferFunction
...
     22 @widgets.register
     23 class TransferFunction(widgets.DOMWidget):
     24     _model_name = Unicode('TransferFunctionModel').tag(sync=True)

AttributeError: partially initialized module 'ipyvolume' has no attribute '_version' (most likely due to a circular import)

from ipyvolume.

juanbolso avatar juanbolso commented on June 5, 2024

Well, I don't know why but after re-installing everything and re-booting VSCode, it's working :D

Here is the plot I am generating:
image

However, I am having troubles to do almost anything with this interactive 3D plot. For example, I cannot change the resolution neither I can't save a capture of it because the following popup appears:

image

If I press OK then another message (from VSCode) appears:
image

and if I press cancel, then goes back to the 3D plot but without any intended changes having effect.

from ipyvolume.

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.