Can't login to JupyterLab Server

Morris Su
  • 23 Sep '24

Hi,

I encountered this problems yesterday. When I tried to launch the JupyterLab, the HTTP responsed 500 error.
How can I fix it?

Thank you.

屏幕截图 2024-09-23 141710.png

Dylan Nelson
  • 23 Sep '24

I suspect you corrupted your Python environment by e.g. installing different/newer versions of Jupyter, JupyterLab, etc. You should avoid doing this, it will break your environment.

I have restored it to default, and copied over the 3 data directories I saw.

Morris Su
  • 23 Sep '24

Thank you for your help! I will be more careful to avoid such mistakes in the future.

Morris Su
  • 1
  • 23 Sep '24

I think this issue maybe occurred due to the conda virtual environment I made in the user file. For data processing, I need to create a conda environment which python version is 3.11, may I ask:

1.  Is it proper for me to create a new conda environment under the path : "/home/tnguser/..." besides the base environment ?
2. How should I manage my environment appropriately ? 
3. Can I view the FITS file on the Jupyterlab by install DS9? Or should I download the file and view on the local computer ?
Dylan Nelson
  • 23 Sep '24

(1) The default python in the Lab is 3.11. So I would strongly advise to use this, and not try to create a new environment. You can install additional packages simply with pip.

(3) I have never tried DS9 in the Lab, I guess that if this is a GUI application, it will not work. As JupyterLab has no built in functionality to show FITS, I think you will have to download them and use a local viewer on your own computer.

Morris Su
  • 23 Sep '24

Okay, thank you very much for your patient reply, and thank you again for your help!

  • Page 1 of 1