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
When using the Papermill version 2.5.0 I encountered an issue when using parametrized notebooks. I believe this is a bug because it doesn't happen in version 2.4.0.
I have created a small test case which reproduces the bug: testcase.zip
The zip contains test.py and test.ipynb which should sit next to each other when test.py is run. The log I get when I run this test case is
Traceback (most recent call last):
File "/home/mads/Development/oSparc/osparc-simcore-clients/clients/python/test/e2e/test.py", line 12, in <module>
pm.execute_notebook(
File "/home/mads/Development/oSparc/osparc-simcore-clients/.venv/lib/python3.10/site-packages/papermill/execute.py", line 94, in execute_notebook
parameter_predefined = _infer_parameters(nb)
File "/home/mads/Development/oSparc/osparc-simcore-clients/.venv/lib/python3.10/site-packages/papermill/inspection.py", line 41, in _infer_parameters
kernel_name = nb.metadata.kernelspec.name
File "/home/mads/Development/oSparc/osparc-simcore-clients/.venv/lib/python3.10/site-packages/nbformat/_struct.py", line 125, in __getattr__
raise AttributeError(key) from None
AttributeError: kernelspec
The text was updated successfully, but these errors were encountered:
Thanks for raising with an example. I'll take a look this week and see what the root problem is, though the code related to this shouldn't have changed in papermill iirc.
Found the issue -- technically the notebook spec requires it specify some metadata that a new code path reads. Other paths in papermill raise a clearer message and require an metadata override argument in these cases. I'll unify the pattern a bit here and get a patch release going.
Found the issue -- technically the notebook spec requires it specify some metadata that a new code path reads. Other paths in papermill raise a clearer message and require an metadata override argument in these cases. I'll unify the pattern a bit here and get a patch release going.
Thanks @MSeal. We use Papermill in our testing, so we very much appreciate the quick response time here 😄 👍🏻
🐛 Bug
When using the Papermill version 2.5.0 I encountered an issue when using parametrized notebooks. I believe this is a bug because it doesn't happen in version 2.4.0.
I have created a small test case which reproduces the bug:
testcase.zip
The zip contains
test.py
andtest.ipynb
which should sit next to each other whentest.py
is run. The log I get when I run this test case isThe text was updated successfully, but these errors were encountered: