Coder Social home page Coder Social logo

Comments (9)

mlamarre avatar mlamarre commented on June 20, 2024 2

I had the same behavior.
Contrary to @patquem using pythreejs==2.3.0 worked for me.

Maybe because of the package manager. Here's how I downgraded pythreejs:

mamba install pythreejs==2.3.0 -c conda-forge

Mamba then decided on its own to use ipywidgets==7.7.2, jupyterlab_widgets==1.1.1 and widgetnbextension==3.6.1.

My notebooks were working fine July 24th 2022, pythreejs and ipywidgets both got bumped since then, so it could be any of the two.

from ipyvolume.

patquem avatar patquem commented on June 20, 2024

Note that when downgrading pythreejs from 2.4.1 to 2.3.0, the notebook returns the following outputs:

image

from ipyvolume.

ixakalabadie avatar ixakalabadie commented on June 20, 2024

I get almost the same messages. When I open the notebook:

[W 16:52:19.689 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20221010165117 (127.0.0.1) 1.090000ms referer=http://localhost:8889/notebooks/Visualization/ipyvolume/ipyvolume_test.ipynb

except that I do not get the "comm target" error message (the first times i installed everything I did but not anymore).

When I run the code (e.g. ipv.quickvolshow(V, level=[0.25, 0.75], opacity=0.03, level_width=0.1, data_min=0, data_max=1)) the kernel gets stuck and I have to disconnect the notebook server. The error message I get:

[W 16:53:38.313 NotebookApp] 404 GET /static/jupyter-threejs.js?v=20221010165117 (127.0.0.1) 3.020000ms referer=http://localhost:8889/notebooks/Visualization/ipyvolume/ipyvolume_test.ipynb
[W 16:53:38.682 NotebookApp] 404 GET /static/three.js?v=20221010165117 (127.0.0.1) 1.840000ms referer=http://localhost:8889/notebooks/Visualization/ipyvolume/ipyvolume_test.ipynb

If I just run ipv.figure() nothing shows but the kernel does not get stuck.

I installed all the packages with conda with the latest versions

from ipyvolume.

jcfaracco avatar jcfaracco commented on June 20, 2024

Probably, I'm getting a similar result when I run a simple example using Lab:

[Open Browser Console for more detailed log - Double click to close this message]
Failed to load model class 'FigureModel' from module 'ipyvolume'
loadClass@http://127.0.0.1:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/134.bcbea9feb6e7c4da7530.js?v=bcbea9feb6e7c4da7530:1:74977
loadModelClass@http://127.0.0.1:8888/static/lab/4416.e3828afa11aab94744e3.js?v=e3828afa11aab94744e3:1:11350
_make_model@http://127.0.0.1:8888/static/lab/4416.e3828afa11aab94744e3.js?v=e3828afa11aab94744e3:1:9238

My versions:

  • jupyter: 3.4.7
  • notebook: 6.4.12

All minimal dependencies are met, including the extensions and the installation doc.

from ipyvolume.

jcfaracco avatar jcfaracco commented on June 20, 2024

@ixakalabadie I tested using a notebook only and I got the same behavior. 😞

from ipyvolume.

ixakalabadie avatar ixakalabadie commented on June 20, 2024

I downgraded to pythreejs=2.3.0 and it changed to ipywidgets=7.6.5, jupyterlab_widgets=3.0.3 and widgetnmextension=3.5.2. Still didn't work. I forced ipywidgets=7.7.2 and it changed the other packages to the versions @mlamarre mentioned but still no luck.
This is the error I get now:

[W 12:52:26.827 NotebookApp] 404 GET /static/components/jquery-ui/themes/smoothness/jquery-ui.min.css (127.0.0.1) 2.330000ms referer=http://localhost:8888/notebooks/Visualization/ipyvolume/ipyvolume_test.ipynb
[W 12:52:27.520 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20221019125136 (127.0.0.1) 1.770000ms referer=http://localhost:8888/notebooks/Visualization/ipyvolume/ipyvolume_test.ipynb
[I 12:52:27.524 NotebookApp] Kernel started: cc0ff42d-e744-4ede-baaa-3cbb31fab738, name: python3
[W 12:52:54.832 NotebookApp] 404 GET /static/jupyter-threejs.js?v=20221019125136 (127.0.0.1) 5.540000ms referer=http://localhost:8888/notebooks/Visualization/ipyvolume/ipyvolume_test.ipynb
[W 12:52:55.367 NotebookApp] 404 GET /static/three.js?v=20221019125136 (127.0.0.1) 2.550000ms referer=http://localhost:8888/notebooks/Visualization/ipyvolume/ipyvolume_test.ipynb <

Could you @mlamarre send the list of all installed packages in your environment for comparison?
Thanks

from ipyvolume.

mlamarre avatar mlamarre commented on June 20, 2024

Here is my full environment,
environment.yml

I still see the following logs, but everything works fine:

[E 15:53:20.345 NotebookApp] Could not open static file ''
[W 15:53:20.383 NotebookApp] 404 GET /static/components/jquery-ui/themes/smoothness/jquery-ui.min.css (::1) 7.000000ms referer= [redacted]
[W 15:53:26.053 NotebookApp] 404 GET /static/components/jquery-ui/themes/smoothness/jquery-ui.min.css (::1) 2.000000ms referer=http://localhost:8888/notebooks/[redacted]
[I 15:53:26.706 NotebookApp] Kernel started: [redacted] name: python3
[IPKernelApp] ERROR | No such comm target registered: jupyter.widget.control
[IPKernelApp] WARNING | No such comm: [redacted]

from ipyvolume.

ixakalabadie avatar ixakalabadie commented on June 20, 2024

Thank you.
I created it but still does not work. You are using windows right? I am using ubuntu 22.04.
Some errors I get are the same but I have some other ones as well:

[E 11:56:37.449 NotebookApp] Could not open static file ''
[W 11:56:37.627 NotebookApp] 404 GET /static/components/jquery-ui/themes/smoothness/jquery-ui.min.css (127.0.0.1) 7.720000ms referer=http://localhost:8888/tree?token=1489dd20117a86a0f4060f4551d0298cc3e0d5f2f7284812
[W 11:56:47.249 NotebookApp] 404 GET /static/components/jquery-ui/themes/smoothness/jquery-ui.min.css (127.0.0.1) 2.800000ms referer=http://localhost:8888/notebooks/Visualization/ipyvolume/ipyvolume_test.ipynb
[W 11:56:47.785 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20221026115635 (127.0.0.1) 1.760000ms referer=http://localhost:8888/notebooks/Visualization/ipyvolume/ipyvolume_test.ipynb
[I 11:56:48.042 NotebookApp] Kernel started: 016c4781-2e20-4e2c-9191-9ef238857796, name: python3
[W 11:56:58.572 NotebookApp] 404 GET /static/jupyter-threejs.js?v=20221026115635 (127.0.0.1) 4.510000ms referer=http://localhost:8888/notebooks/Visualization/ipyvolume/ipyvolume_test.ipynb
[W 11:56:59.060 NotebookApp] 404 GET /static/three.js?v=20221026115635 (127.0.0.1) 1.850000ms referer=http://localhost:8888/notebooks/Visualization/ipyvolume/ipyvolume_test.ipynb

from ipyvolume.

kevinwwillis avatar kevinwwillis commented on June 20, 2024

I had the same behavior. Contrary to @patquem using pythreejs==2.3.0 worked for me.

This also worked for me. I reinstalled Jupyter, ipywidgets, and all else related to ipyvolume. After this, ipyvolume still did not work and I continued to get the two 404s that @patquem had. Downgrading pythreejs to 2.3.0 finally got ipyvolume working for the first time on my remote machine. Thanks!

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.