tardis-sn / tardis

TARDIS - Temperature And Radiative Diffusion In Supernovae
https://tardis-sn.github.io/tardis
204 stars 406 forks source link

Widgets not being displayed in notebooks #2813

Closed afloers closed 1 week ago

afloers commented 2 months ago

Describe the bug No widgets are displayed when running the quickstart notebook in a fresh tardis environment.

from tardis import run_tardis sim = run_tardis("/Users/afloers/tardis_example.yml", virtual_packet_logging=True, show_convergence_plots=True, export_convergence_plots=True, log_level="INFO")

from tardis.visualization import ( shell_info_from_simulation, shell_info_from_hdf, LineInfoWidget, GrotrianWidget, )

shell_info_widget = shell_info_from_simulation(sim) shell_info_widget.display()

line_info_widget = LineInfoWidget.from_simulation(sim) line_info_widget.display()

To Reproduce jupyter --version IPython : 8.25.0 ipykernel : 6.29.4 ipywidgets : 7.8.0 jupyter_client : 8.6.2 jupyter_core : 5.7.2 jupyter_server : 2.14.1 jupyterlab : 4.2.2 nbclient : 0.10.0 nbconvert : 7.16.4 nbformat : 5.10.4 notebook : 7.2.1 qtconsole : not installed traitlets : 5.14.3

Screenshots

Image

System

Name Version Build Channel alabaster 0.7.16 pyhd8ed1ab_0 conda-forge anyio 4.4.0 pyhd8ed1ab_0 conda-forge appnope 0.1.4 pyhd8ed1ab_0 conda-forge argon2-cffi 23.1.0 pyhd8ed1ab_0 conda-forge argon2-cffi-bindings 21.2.0 py312h104f124_4 conda-forge arrow 1.3.0 pyhd8ed1ab_0 conda-forge astropy 6.1.1 py312h5dc8b90_0 conda-forge astropy-iers-data 0.2024.6.17.0.31.35 pyhd8ed1ab_0 conda-forge astropy-sphinx-theme 1.1 pyhd8ed1ab_0 conda-forge asttokens 2.4.1 pyhd8ed1ab_0 conda-forge async-lru 2.0.4 pyhd8ed1ab_0 conda-forge atk-1.0 2.38.0 h4bec284_2 conda-forge attrs 23.2.0 pyh71513ae_0 conda-forge babel 2.14.0 pyhd8ed1ab_0 conda-forge beautifulsoup4 4.12.3 pyha770c72_0 conda-forge black 22.3.0 pyhd8ed1ab_0 conda-forge bleach 6.1.0 pyhd8ed1ab_0 conda-forge blosc 1.21.5 hafa3907_1 conda-forge brotli 1.1.0 h0dc2134_1 conda-forge brotli-bin 1.1.0 h0dc2134_1 conda-forge brotli-python 1.1.0 py312heafc425_1 conda-forge bzip2 1.0.8 h10d778d_5 conda-forge c-ares 1.28.1 h10d778d_0 conda-forge c-blosc2 2.14.4 h0ae8482_1 conda-forge ca-certificates 2024.6.2 h8857fd0_0 conda-forge cached-property 1.5.2 hd8ed1ab_1 conda-forge cached_property 1.5.2 pyha770c72_1 conda-forge cairo 1.18.0 h99e66fa_0 conda-forge certifi 2024.6.2 pyhd8ed1ab_0 conda-forge cffi 1.16.0 py312h38bf5a0_0 conda-forge charset-normalizer 3.3.2 pyhd8ed1ab_0 conda-forge click 8.1.7 unix_pyh707e725_0 conda-forge colorama 0.4.6 pyhd8ed1ab_0 conda-forge comm 0.2.2 pyhd8ed1ab_0 conda-forge commonmark 0.9.1 py_0 conda-forge contourpy 1.2.1 py312h9230928_0 conda-forge coverage 7.5.3 py312hbd25219_0 conda-forge cycler 0.12.1 pyhd8ed1ab_0 conda-forge dataclasses 0.8 pyhc8e2a94_3 conda-forge debugpy 1.8.1 py312hede676d_0 conda-forge decorator 5.1.1 pyhd8ed1ab_0 conda-forge defusedxml 0.7.1 pyhd8ed1ab_0 conda-forge docutils 0.20.1 py312hb401068_3 conda-forge dot2tex 2.11.3 pyhd8ed1ab_0 conda-forge entrypoints 0.4 pyhd8ed1ab_0 conda-forge exceptiongroup 1.2.0 pyhd8ed1ab_2 conda-forge executing 2.0.1 pyhd8ed1ab_0 conda-forge expat 2.6.2 h73e2aa4_0 conda-forge font-ttf-dejavu-sans-mono 2.37 hab24e00_0 conda-forge font-ttf-inconsolata 3.000 h77eed37_0 conda-forge font-ttf-source-code-pro 2.038 h77eed37_0 conda-forge font-ttf-ubuntu 0.83 h77eed37_2 conda-forge fontconfig 2.14.2 h5bb23bf_0 conda-forge fonts-conda-ecosystem 1 0 conda-forge fonts-conda-forge 1 0 conda-forge fonttools 4.53.0 py312hbd25219_0 conda-forge fqdn 1.5.1 pyhd8ed1ab_0 conda-forge freetype 2.12.1 h60636b9_2 conda-forge fribidi 1.0.10 hbcb3906_0 conda-forge future 1.0.0 pyhd8ed1ab_0 conda-forge gdk-pixbuf 2.42.12 ha587570_0 conda-forge gettext 0.22.5 h5ff76d1_2 conda-forge gettext-tools 0.22.5 h5ff76d1_2 conda-forge giflib 5.2.2 h10d778d_0 conda-forge git-lfs 3.5.1 h694c41f_0 conda-forge gmp 6.3.0 h73e2aa4_1 conda-forge gmpy2 2.1.5 py312hd98c385_1 conda-forge graphite2 1.3.13 h73e2aa4_1003 conda-forge graphviz 11.0.0 hc9017ca_0 conda-forge gtk2 2.24.33 h8ca4665_4 conda-forge gts 0.7.6 h53e17e3_4 conda-forge h11 0.14.0 pyhd8ed1ab_0 conda-forge h2 4.1.0 pyhd8ed1ab_0 conda-forge h5py 3.11.0 nompi_py312hfc94b03_102 conda-forge harfbuzz 8.5.0 h053f038_0 conda-forge hdf5 1.14.3 nompi_h687a608_105 conda-forge hpack 4.0.0 pyh9f0ad1d_0 conda-forge httpcore 1.0.5 pyhd8ed1ab_0 conda-forge httpx 0.27.0 pyhd8ed1ab_0 conda-forge hyperframe 6.0.1 pyhd8ed1ab_0 conda-forge icu 73.2 hf5e326d_0 conda-forge idna 3.7 pyhd8ed1ab_0 conda-forge imagesize 1.4.1 pyhd8ed1ab_0 conda-forge importlib-metadata 7.1.0 pyha770c72_0 conda-forge importlib_metadata 7.1.0 hd8ed1ab_0 conda-forge importlib_resources 6.4.0 pyhd8ed1ab_0 conda-forge iniconfig 2.0.0 pyhd8ed1ab_0 conda-forge ipykernel 6.29.4 pyh57ce528_0 conda-forge ipython 8.25.0 pyh707e725_0 conda-forge ipython_genutils 0.2.0 pyhd8ed1ab_1 conda-forge ipywidgets 7.8.0 pyhd8ed1ab_0 conda-forge isoduration 20.11.0 pyhd8ed1ab_0 conda-forge jedi 0.19.1 pyhd8ed1ab_0 conda-forge jinja2 3.1.4 pyhd8ed1ab_0 conda-forge json5 0.9.25 pyhd8ed1ab_0 conda-forge jsonpointer 3.0.0 py312hb401068_0 conda-forge jsonschema 4.22.0 pyhd8ed1ab_0 conda-forge jsonschema-specifications 2023.12.1 pyhd8ed1ab_0 conda-forge jsonschema-with-format-nongpl 4.22.0 pyhd8ed1ab_0 conda-forge jupyter-lsp 2.2.5 pyhd8ed1ab_0 conda-forge jupyter_client 8.6.2 pyhd8ed1ab_0 conda-forge jupyter_core 5.7.2 py312hb401068_0 conda-forge jupyter_events 0.10.0 pyhd8ed1ab_0 conda-forge jupyter_server 2.14.1 pyhd8ed1ab_0 conda-forge jupyter_server_terminals 0.5.3 pyhd8ed1ab_0 conda-forge jupyterlab 4.2.2 pyhd8ed1ab_0 conda-forge jupyterlab_pygments 0.3.0 pyhd8ed1ab_1 conda-forge jupyterlab_server 2.27.2 pyhd8ed1ab_0 conda-forge jupyterlab_widgets 1.1.7 pyhd8ed1ab_0 conda-forge kiwisolver 1.4.5 py312h49ebfd2_1 conda-forge krb5 1.21.2 hb884880_0 conda-forge latexcodec 2.0.1 pyh9f0ad1d_0 conda-forge lcms2 2.16 ha2f27b4_0 conda-forge lerc 4.0.0 hb486fe8_0 conda-forge libaec 1.1.3 h73e2aa4_0 conda-forge libasprintf 0.22.5 h5ff76d1_2 conda-forge libasprintf-devel 0.22.5 h5ff76d1_2 conda-forge libblas 3.9.0 22_osx64_openblas conda-forge libbrotlicommon 1.1.0 h0dc2134_1 conda-forge libbrotlidec 1.1.0 h0dc2134_1 conda-forge libbrotlienc 1.1.0 h0dc2134_1 conda-forge libcblas 3.9.0 22_osx64_openblas conda-forge libcurl 8.8.0 hf9fcc65_0 conda-forge libcxx 17.0.6 h88467a6_0 conda-forge libdeflate 1.20 h49d49c5_0 conda-forge libedit 3.1.20191231 h0678c8f_2 conda-forge libev 4.33 h10d778d_2 conda-forge libexpat 2.6.2 h73e2aa4_0 conda-forge libffi 3.4.2 h0d85af4_5 conda-forge libgd 2.3.3 h0dceb68_9 conda-forge libgettextpo 0.22.5 h5ff76d1_2 conda-forge libgettextpo-devel 0.22.5 h5ff76d1_2 conda-forge libgfortran 5.0.0 13_2_0_h97931a8_3 conda-forge libgfortran5 13.2.0 h2873a65_3 conda-forge libglib 2.80.2 h736d271_1 conda-forge libiconv 1.17 hd75f5a5_2 conda-forge libintl 0.22.5 h5ff76d1_2 conda-forge libintl-devel 0.22.5 h5ff76d1_2 conda-forge libjpeg-turbo 3.0.0 h0dc2134_1 conda-forge liblapack 3.9.0 22_osx64_openblas conda-forge libllvm14 14.0.6 hc8e404f_4 conda-forge libnghttp2 1.58.0 h64cf6d3_1 conda-forge libopenblas 0.3.27 openmp_hfef2a42_0 conda-forge libpng 1.6.43 h92b6c6a_0 conda-forge librsvg 2.58.1 h368d7ee_0 conda-forge libsodium 1.0.18 hbcb3906_1 conda-forge libsqlite 3.46.0 h1b8f9f3_0 conda-forge libssh2 1.11.0 hd019ec5_0 conda-forge libtiff 4.6.0 h129831d_3 conda-forge libwebp 1.4.0 hc207709_0 conda-forge libwebp-base 1.4.0 h10d778d_0 conda-forge libxcb 1.16 h0dc2134_0 conda-forge libxml2 2.12.7 h3e169fe_1 conda-forge libxslt 1.1.39 h03b04e6_0 conda-forge libzlib 1.3.1 h87427d6_1 conda-forge llvm-openmp 18.1.7 h15ab845_0 conda-forge llvmlite 0.42.0 py312h534208b_1 conda-forge lxml 5.2.2 py312h1aa9a54_0 conda-forge lz4-c 1.9.4 hf0c8a7f_0 conda-forge markupsafe 2.1.5 py312h41838bb_0 conda-forge matplotlib-base 3.8.4 py312hb6d62fa_2 conda-forge matplotlib-inline 0.1.7 pyhd8ed1ab_0 conda-forge mistune 3.0.2 pyhd8ed1ab_0 conda-forge mpc 1.3.1 h81bd1dd_0 conda-forge mpfr 4.2.1 h4f6b447_1 conda-forge mpmath 1.3.0 pyhd8ed1ab_0 conda-forge munkres 1.1.4 pyh9f0ad1d_0 conda-forge mypy_extensions 1.0.0 pyha770c72_0 conda-forge nbclassic 1.1.0 pyhd8ed1ab_0 conda-forge nbclient 0.10.0 pyhd8ed1ab_0 conda-forge nbconvert 7.16.4 hd8ed1ab_1 conda-forge nbconvert-core 7.16.4 pyhd8ed1ab_1 conda-forge nbconvert-pandoc 7.16.4 hd8ed1ab_1 conda-forge nbformat 5.10.4 pyhd8ed1ab_0 conda-forge nbsphinx 0.9.4 pyhd8ed1ab_0 conda-forge ncurses 6.5 h5846eda_0 conda-forge nest-asyncio 1.6.0 pyhd8ed1ab_0 conda-forge networkx 3.3 pyhd8ed1ab_1 conda-forge notebook 7.2.1 pyhd8ed1ab_0 conda-forge notebook-shim 0.2.4 pyhd8ed1ab_0 conda-forge numba 0.59.1 py312h04e34b5_0 conda-forge numexpr 2.10.0 py312h1171441_0 conda-forge numpy 1.26.4 py312he3a82b2_0 conda-forge numpydoc 1.7.0 pyhd8ed1ab_1 conda-forge openjpeg 2.5.2 h7310d3a_0 conda-forge openssl 3.3.1 h87427d6_0 conda-forge overrides 7.7.0 pyhd8ed1ab_0 conda-forge packaging 24.1 pyhd8ed1ab_0 conda-forge pandas 2.2.2 py312h1171441_1 conda-forge pandoc 3.2 h694c41f_0 conda-forge pandocfilters 1.5.0 pyhd8ed1ab_0 conda-forge pango 1.54.0 h880b76c_0 conda-forge parso 0.8.4 pyhd8ed1ab_0 conda-forge pathspec 0.12.1 pyhd8ed1ab_0 conda-forge pbr 6.0.0 pyhd8ed1ab_0 conda-forge pcre2 10.44 h7634a1b_0 conda-forge pexpect 4.9.0 pyhd8ed1ab_0 conda-forge pickleshare 0.7.5 py_1003 conda-forge pillow 10.3.0 py312hbd70edc_1 conda-forge pip 24.0 pyhd8ed1ab_0 conda-forge pixman 0.43.4 h73e2aa4_0 conda-forge pkgutil-resolve-name 1.3.10 pyhd8ed1ab_1 conda-forge platformdirs 4.2.2 pyhd8ed1ab_0 conda-forge plotly 5.22.0 pyhd8ed1ab_0 conda-forge pluggy 1.5.0 pyhd8ed1ab_0 conda-forge prometheus_client 0.20.0 pyhd8ed1ab_0 conda-forge prompt-toolkit 3.0.47 pyha770c72_0 conda-forge psutil 5.9.8 py312h41838bb_0 conda-forge pthread-stubs 0.4 hc929b4f_1001 conda-forge ptyprocess 0.7.0 pyhd3deb0d_0 conda-forge pure_eval 0.2.2 pyhd8ed1ab_0 conda-forge py-cpuinfo 9.0.0 pyhd8ed1ab_0 conda-forge pybtex 0.24.0 pyhd8ed1ab_2 conda-forge pybtex-docutils 1.0.3 py312hb401068_1 conda-forge pycparser 2.22 pyhd8ed1ab_0 conda-forge pyerfa 2.0.1.4 py312h5dc8b90_1 conda-forge pygments 2.18.0 pyhd8ed1ab_0 conda-forge pygraphviz 1.13 py312h6908add_1 conda-forge pyobjc-core 10.3.1 py312he77c50b_0 conda-forge pyobjc-framework-cocoa 10.3.1 py312he77c50b_0 conda-forge pyparsing 3.1.2 pyhd8ed1ab_0 conda-forge pysocks 1.7.1 pyha2e5f31_6 conda-forge pytables 3.9.2 py312hf575446_2 conda-forge pytest 8.2.2 pyhd8ed1ab_0 conda-forge pytest-cov 5.0.0 pyhd8ed1ab_0 conda-forge pytest-doctestplus 1.2.1 pyhd8ed1ab_0 conda-forge pytest-html 4.1.1 pyhd8ed1ab_0 conda-forge pytest-metadata 3.1.1 pyhd8ed1ab_0 conda-forge python 3.12.4 h37a9e06_0_cpython conda-forge python-dateutil 2.9.0 pyhd8ed1ab_0 conda-forge python-fastjsonschema 2.20.0 pyhd8ed1ab_0 conda-forge python-json-logger 2.0.7 pyhd8ed1ab_0 conda-forge python-tzdata 2024.1 pyhd8ed1ab_0 conda-forge python_abi 3.12 4_cp312 conda-forge pytz 2024.1 pyhd8ed1ab_0 conda-forge pyyaml 6.0.1 py312h104f124_1 conda-forge pyzmq 26.0.3 py312ha04878a_0 conda-forge qgrid 1.3.1 pyhd8ed1ab_4 conda-forge radioactivedecay 0.5.1 pyhd8ed1ab_0 conda-forge readline 8.2 h9e318b2_1 conda-forge recommonmark 0.7.1 pyhd8ed1ab_0 conda-forge referencing 0.35.1 pyhd8ed1ab_0 conda-forge requests 2.32.3 pyhd8ed1ab_0 conda-forge rfc3339-validator 0.1.4 pyhd8ed1ab_0 conda-forge rfc3986-validator 0.1.1 pyh9f0ad1d_0 conda-forge rpds-py 0.18.1 py312ha47ea1c_0 conda-forge ruff 0.4.9 py312h8b25c6c_0 conda-forge scipy 1.13.1 py312hb9702fa_0 conda-forge send2trash 1.8.3 pyh31c8845_0 conda-forge setuptools 70.0.0 pyhd8ed1ab_0 conda-forge setuptools-scm 8.1.0 pyhd8ed1ab_0 conda-forge setuptools_scm 8.1.0 hd8ed1ab_0 conda-forge six 1.16.0 pyh6c4a22f_0 conda-forge snakeviz 2.2.0 pyhd8ed1ab_0 conda-forge snappy 1.2.0 h6dc393e_1 conda-forge sniffio 1.3.1 pyhd8ed1ab_0 conda-forge snowballstemmer 2.2.0 pyhd8ed1ab_0 conda-forge soupsieve 2.5 pyhd8ed1ab_1 conda-forge sphinx 7.3.7 pyhd8ed1ab_0 conda-forge sphinx-astropy 1.9.1 pyhd8ed1ab_0 conda-forge sphinx-automodapi 0.17.0 pyh717bed2_1 conda-forge sphinx-gallery 0.16.0 pyhd8ed1ab_0 conda-forge sphinx-jsonschema 1.19.1 pyhd8ed1ab_0 conda-forge sphinx_bootstrap_theme 0.8.1 pyhd8ed1ab_0 conda-forge sphinx_rtd_theme 2.0.0 pyha770c72_0 conda-forge sphinxcontrib-apidoc 0.3.0 py_1 conda-forge sphinxcontrib-applehelp 1.0.8 pyhd8ed1ab_0 conda-forge sphinxcontrib-bibtex 2.6.2 pyhd8ed1ab_0 conda-forge sphinxcontrib-devhelp 1.0.6 pyhd8ed1ab_0 conda-forge sphinxcontrib-htmlhelp 2.0.5 pyhd8ed1ab_0 conda-forge sphinxcontrib-jquery 4.1 pyhd8ed1ab_0 conda-forge sphinxcontrib-jsmath 1.0.1 pyhd8ed1ab_0 conda-forge sphinxcontrib-qthelp 1.0.7 pyhd8ed1ab_0 conda-forge sphinxcontrib-serializinghtml 1.1.10 pyhd8ed1ab_0 conda-forge stack_data 0.6.2 pyhd8ed1ab_0 conda-forge sympy 1.12.1 pypyh2585a3b_103 conda-forge tabulate 0.9.0 pyhd8ed1ab_1 conda-forge tardis 0.0.0 pypi_0 pypi tenacity 8.4.1 pyhd8ed1ab_0 conda-forge terminado 0.18.1 pyh31c8845_0 conda-forge tinycss2 1.3.0 pyhd8ed1ab_0 conda-forge tk 8.6.13 h1abcd95_1 conda-forge toml 0.10.2 pyhd8ed1ab_0 conda-forge tomli 2.0.1 pyhd8ed1ab_0 conda-forge tornado 6.4.1 py312hbd25219_0 conda-forge tqdm 4.66.4 pyhd8ed1ab_0 conda-forge traitlets 5.14.3 pyhd8ed1ab_0 conda-forge typed-ast 1.5.5 py312h104f124_1 conda-forge types-python-dateutil 2.9.0.20240316 pyhd8ed1ab_0 conda-forge typing-extensions 4.12.2 hd8ed1ab_0 conda-forge typing_extensions 4.12.2 pyha770c72_0 conda-forge typing_utils 0.1.0 pyhd8ed1ab_0 conda-forge tzdata 2024a h0c530f3_0 conda-forge uri-template 1.3.0 pyhd8ed1ab_0 conda-forge urllib3 2.2.2 pyhd8ed1ab_0 conda-forge wcwidth 0.2.13 pyhd8ed1ab_0 conda-forge webcolors 24.6.0 pyhd8ed1ab_0 conda-forge webencodings 0.5.1 pyhd8ed1ab_2 conda-forge websocket-client 1.8.0 pyhd8ed1ab_0 conda-forge wheel 0.43.0 pyhd8ed1ab_1 conda-forge widgetsnbextension 3.6.6 pyhd8ed1ab_0 conda-forge xorg-libxau 1.0.11 h0dc2134_0 conda-forge xorg-libxdmcp 1.1.3 h35c211d_0 conda-forge xz 5.2.6 h775f41a_0 conda-forge yaml 0.2.5 h0d85af4_2 conda-forge zeromq 4.3.5 hde137ed_4 conda-forge zipp 3.19.2 pyhd8ed1ab_0 conda-forge zlib 1.3.1 h87427d6_1 conda-forge zlib-ng 2.0.7 hb7f2c08_0 conda-forge zstd 1.5.6 h915ae27_0 conda-forge Additional context

andrewfullard commented 2 months ago

See also #2599 and #1954 (which is basically a duplicate from a couple of years ago)

andrewfullard commented 2 months ago

Please test the latest dev build of TARDIS with qgridnext installed via pip.

jamesgillanders commented 1 week ago

qgridnext should have resolved this -- can you check and see if the issue persists?

MarkMageeAstro commented 1 week ago

I've tested this on the latest release (TARDIS v2024.11.11) with an ARM Mac and the widgets display correctly.

Screenshot 2024-11-15 at 17 10 39