spacetelescope / jdaviz

JWST astronomical data analysis tools in the Jupyter platform
https://jdaviz.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
139 stars 74 forks source link

SpecViz -- Error Displaying Widget: Model not found #1494

Closed atharvabagul2000 closed 1 week ago

atharvabagul2000 commented 2 years ago

I am trying to load the SpecViz app with some spectrum on it but when I call Specviz specviz = jdaviz.Specviz() specviz.load_spectrum(spectrum) specviz.app it shows me the statement " Error Displaying Widget: Model not found" rather than displaying the app.

I tried re-installing Jupyter Labextensions (commands mentioned below) and updating JupyterLab version but still facing the same issue.

Commands I tried in the terminal:

jupyter labextension install @jupyter-widgets/jupyterlab-manager jupyter labextension install bqplot jupyter lab build

Desktop (please complete the following information):

pllim commented 2 years ago

Hi.

atharvabagul2000 commented 2 years ago

Hi.

  • Does it work in Jupyter Notebook?
  • Does it work in a different browser?
  • Was the Jupyter stack installed with conda or pip?

Hello!

It does work in Jupyter Notebook.

But why doesn't it work in Lab? I usually don't use the notebook.

pllim commented 2 years ago

I am not sure. I encountered this error myself only once or twice a while ago. I vaguely remember it going away after I created a fresh environment and use conda to install the Jupyter stack; e.g. https://jdaviz.readthedocs.io/en/latest/installation.html#common-issues

pllim commented 2 years ago

@atharvabagul2000 , did you ever get it to work? Did you try it on a new Python environment?

atharvabagul2000 commented 2 years ago

@atharvabagul2000 , did you ever get it to work? Did you try it on a new Python environment?

Hello! @pllim

Yes, I got it to working. I am running it on Notebook only though. It still didn't work on JupyterLab and I don't know why!

I just came through another issue, so I have opened a new issue.

pllim commented 2 years ago

Do you still have problem with Lab after you created a new conda environment and only try to install Jdaviz in that environment?

atharvabagul2000 commented 2 years ago

Do you still have problem with Lab after you created a new conda environment and only try to install Jdaviz in that environment?

I will try to make a new environment and let you know real soon!