You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
👋 Hi. While trying to get a nightly notebook pytest test working again with modern papermill and scrapbook (c.f. scikit-hep/pyhf#1841) I noticed that if I have Python filter warnings set to 'default', I can get a nbclient.exceptions.DeadKernelError from papermill if the notebook being executed has any IPython/Jupyter magics like shell evaluation with !.
- name: Test example notebooksshell: bashrun: | # Override the ini option for filterwarnings with an empty list to disable error # on filterwarnings as testing for notebooks to run with the latest API, not if # Jupyter infrastructure is warning free. # Though still show warnings by setting warning control to 'default'. export PYTHONWARNINGS='default' pytest --override-ini filterwarnings= tests/test_notebooks.py
Question
👋 Hi. While trying to get a nightly notebook
pytest
test working again with modernpapermill
andscrapbook
(c.f. scikit-hep/pyhf#1841) I noticed that if I have Python filter warnings set to'default'
, I can get anbclient.exceptions.DeadKernelError
frompapermill
if the notebook being executed has any IPython/Jupyter magics like shell evaluation with!
.Example from scikit-hep/pyhf#1841:
Do you have any ideas why setting
PYTHONWARNINGS='default'
which willwould cause a
nbclient.exceptions.DeadKernelError
, which goes away ifPYTHONWARNINGS
is not set?Log files
There is a log file for
$ PYTHONWARNINGS='default' pytest --override-ini filterwarnings= tests/test_notebooks.py -k test_xml_importexport &> /tmp/pythonwarnings_log.txt
at scikit-hep/pyhf#1840 (comment), which I can link here: https://github.com/scikit-hep/pyhf/files/8425002/pythonwarnings_log.txt
Related Issues and PRs
The text was updated successfully, but these errors were encountered: