spacetelescope / jdaviz

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

[BUG] Jupyter Notebooks Failing with 500 : Internal Server Error #2289

Open PaulHuwe opened 1 year ago

PaulHuwe commented 1 year ago

Jdaviz component

Other (explain in Description below)

Description

When I tried to run https://github.com/spacetelescope/jdaviz/blob/main/notebooks/concepts/imviz_roman_asdf.ipynb in Jupyter Notebook 6.5.4, I get an error:

500 : Internal Server Error

The fix for this is to have nbconvert library 7.x or greater, but neither the notebook or jupyter notebooks pin that (they just had an install of 6.x). I do not know which needs the tag, but I figured I would start here. I learned the solution from: https://github.com/jupyter/notebook/issues/6531

How to Reproduce

  1. Get package from 'https://github.com/spacetelescope/jdaviz/blob/main/notebooks/concepts/imviz_roman_asdf.ipynb ' and install jupyter notebook through anaconda navigator in a new conda environment.
  2. Then run 'jupyter notebook in navigator' and open the downloaded notebook.
  3. An error occurs.

Expected behavior

The notebook to open and work.

Browser

Chrome

Jupyter

jupyter --version

jupyter --version Selected Jupyter core packages...

IPython : 8.12.0 ipykernel : 6.24.0 ipywidgets : 8.0.7 jupyter_client : 7.4.1 jupyter_core : 5.3.0 jupyter_server : 1.24.0 jupyterlab : 3.6.5 nbclient : 0.5.13 nbconvert : 7.6.0 nbformat : 5.7.0 notebook : 6.5.4 qtconsole : 5.4.3 traitlets : 5.7.1

Software versions

import platform; print(platform.platform()) import sys; print("Python", sys.version) import numpy; print("Numpy", numpy.version) import astropy; print("astropy", astropy.version) import matplotlib; print("matplotlib", matplotlib.version) import scipy; print("scipy", scipy.version) import skimage; print("scikit-image", skimage.version) import asdf; print("asdf", asdf.version) import stdatamodels; print("stdatamodels", stdatamodels.version) import gwcs; print("gwcs", gwcs.version) import regions; print("regions", regions.version) import specutils; print("specutils", specutils.version) import specreduce; print("specreduce", specreduce.version) import photutils; print("photutils", photutils.version) import astroquery; print("astroquery", astroquery.version) import yaml; print("pyyaml", yaml.version) import asteval; print("asteval", asteval.version) import idna; print("idna", idna.version) import traitlets; print("traitlets", traitlets.version) import bqplot; print("bqplot", bqplot.version) import bqplot_image_gl; print("bqplot-image-gl", bqplot_image_gl.version) import glue; print("glue-core", glue.version) import glue_jupyter; print("glue-jupyter", glue_jupyter.version) import glue_astronomy; print("glue-astronomy", glue_astronomy.version) import echo; print("echo", echo.version) import ipyvue; print("ipyvue", ipyvue.version) import ipyvuetify; print("ipyvuetify", ipyvuetify.version) import ipysplitpanes; print("ipysplitpanes", ipysplitpanes.version) import ipygoldenlayout; print("ipygoldenlayout", ipygoldenlayout.version) import jinja2; print("Jinja2", jinja2.version) import voila; print("voila", voila.version) import vispy; print("vispy", vispy.version) import sidecar; print("sidecar", sidecar.version) import jdaviz; print("Jdaviz", jdaviz.version)

🐱

pllim commented 1 year ago

We do not directly require nbconvert and this incompatibility appears to be an upstream bug, would an entry in https://jdaviz.readthedocs.io/en/latest/known_bugs.html help?

PaulHuwe commented 1 year ago

Sure - hopefully this will go away soon with future jupyter updates.

pllim commented 1 month ago

@PaulHuwe , is this still a problem for you?