-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
unable to launch specviz from command line #552
Comments
On my machine (Linux), I sometimes have to minimize it and then show it again for it to finish loading. Not sure if that will also fix your problem. Which browser is this? Try a different browser too by providing |
I'm using Safari. Minimizing did nothing. Tried Firefox and was the same. |
What about Chrome? Didn't work on Firefox for me either and I don't use Safari but worked on Chrome on Linux. |
Tried Chrome and still the same! I'm on a Mac, 10.15.7 (Catalina) The screen output on the command line is as follows: |
Thanks for checking! 😿 |
Out of curiosity, if you try to load Specviz without data, does it come up at all? |
it does not load, it complains about the lack of a file: (miricle) sarahkloaner:b77-e2e skendrew$ jdaviz --layout specviz --browser chrome Error: Missing argument 'FILENAME'. |
(it does work in a notebook, fwiw. but somewhat buggy.) |
I've also experienced the same thing. Loading jdaviz in desktop mode results in perpetually executing notebook display. I think I've tried Cubeviz and Specviz in Chrome. |
Example on Linux:
|
I just tested it again with |
no, sorry, none of them working. it does open the correct browser and a new tab, but always shows the same screen as I put in my original message. |
If you open up the browser console (right click, go to Inspect or Developer Tools, click Console tab) and reload the page, do you see any errors or output? |
this is from the developer console in Chrome: Executing cell 1 of 1 |
what version of Voila do you have installed? check if it's |
had 0.2.9, downgraded to 0.2.7 and still same. there's a couple of warning messages in the terminal: **http://localhost:8866/ |
hmm. And do you see the same error as before in the developer console? |
yes same error |
Hi @skendrew we've merged a potential fix for this. It's not in a release yet, so you'll need to use the latest |
Hi @havok2063 I pip uninstalled jdaviz and then pulled the code from GitHub & installed from there. With Safari I now get a blank screen with 500: Internal Server Error. The terminal output looks like this: (miricle) sarahkloaner:b77-e2e skendrew$ jdaviz --layout specviz miri_lrs_slit_pt_nod1_v2_x1d.fits |
I am trying to use a different browser but this doesn't work anymore in the same way that I did before. If I put |
I think you need to call the binary executable: https://stackoverflow.com/questions/31083901/how-to-find-the-executable-file-for-open-command-in-mac |
@skendrew Hmm.. it looks like it could be an issue where Voila cannot find the correct template to use when rendering the notebook as html. Are you working in a clean conda environment? I've had similar issues with this
Could there be a conflicting voila configuration? You can also try running in the terminal, in the conda env, I just tried creating a clean python 3.8 environment, installing the latest jdaviz git repo, and it worked for me. It took a moment to start up but the spectrum loaded.
I also tried |
I didn't try all of that but I created the clean conda environment and then it did work with safari. I haven't got time to sort out the different browser options right now, but it looks like the basic issue of not launching is fixed! |
Ok, great! I'm glad it's working now. When in doubt burn it down and start again! |
I have an extracted JWST pipeline output spectrum from MIRI LRS. In python, I can read it into a Spectrum1D object directly -so the file should be readable by specviz. However when I do
jdaviz --layout specviz miri_lrs_slit_pt_nod2_v2_x1d.fits
on the command line, the browser window launches but shows only the following:
The text was updated successfully, but these errors were encountered: