We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Update `test` dependency from `nteract-scrapbook` to `scrapbook`
### Summary

Running the notebook tests generates the warning

```pytb
warnings.warn("'nteract-scrapbook' package has been renamed to `scrapbook`. No new releases are going out for this old package name.", FutureWarning)
```

as [`nteract-scrapbook`](https://pypi.org/project/nteract-scrapbook/) is now [`scrapbook`](https://pypi.org/project/scrapbook/). All that needs to be done is to change the name used in `steup.py` for the `test` extra:

https://github.com/scikit-hep/pyhf/blob/29bc6daed55b40711fabd9b22d3e76f9ee15657d/setup.py#L42

### Additional Information

_No response_

### Code of Conduct

- [X] I agree to follow the Code of Conduct

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `setup.py`
Content:
```
1 from setuptools import setup
2 
3 extras_require = {
4     'shellcomplete': ['click_completion'],
5     'tensorflow': [
6         'tensorflow>=2.3.1',  # c.f. https://github.com/tensorflow/tensorflow/pull/40789
7         'tensorflow-probability>=0.11.0',  # c.f. PR #1657
8     ],
9     'torch': ['torch>=1.10.0'],  # c.f. PR #1657
10     'jax': ['jax>=0.2.10', 'jaxlib>=0.1.60,!=0.1.68'],  # c.f. Issue 1501
11     'xmlio': ['uproot>=4.1.1'],  # c.f. PR #1567
12     'minuit': ['iminuit>=2.4.0'],  # c.f. PR #1306
13 }
14 extras_require['backends'] = sorted(
15     set(
16         extras_require['tensorflow']
17         + extras_require['torch']
18         + extras_require['jax']
19         + extras_require['minuit']
20     )
21 )
22 extras_require['contrib'] = sorted({'matplotlib', 'requests'})
23 extras_require['lint'] = sorted({'flake8', 'black>=22.1.0'})
24 
25 extras_require['test'] = sorted(
26     set(
27         extras_require['backends']
28         + extras_require['xmlio']
29         + extras_require['contrib']
30         + extras_require['shellcomplete']
31         + [
32             'scikit-hep-testdata>=0.4.11',
33             'pytest>=6.0',
34             'pytest-cov>=2.5.1',
35             'pytest-mock',
36             'requests-mock>=1.9.0',
37             'pytest-benchmark[histogram]',
38             'pytest-console-scripts',
39             'pytest-mpl',
40             'pydocstyle',
41             'papermill~=2.0',
42             'nteract-scrapbook~=0.2',
43             'jupyter',
44             'graphviz',
45         ]
46     )
47 )
48 extras_require['docs'] = sorted(
49     set(
50         extras_require['xmlio']
51         + extras_require['contrib']
52         + [
53             'sphinx>=4.0.0',
54             'sphinxcontrib-bibtex~=2.1',
55             'sphinx-click',
56             'sphinx_rtd_theme',
57             'nbsphinx!=0.8.8',  # c.f. https://github.com/spatialaudio/nbsphinx/issues/620
58             'ipywidgets',
59             'sphinx-issues',
60             'sphinx-copybutton>=0.3.2',
61             'sphinx-togglebutton>=0.3.0',
62         ]
63     )
64 )
65 extras_require['develop'] = sorted(
66     set(
67         extras_require['docs']
68         + extras_require['lint']
69         + extras_require['test']
70         + [
71             'nbdime',
72             'tbump>=6.7.0',
73             'ipython',
74             'pre-commit',
75             'check-manifest',
76             'codemetapy>=0.3.4',
77             'twine',
78         ]
79     )
80 )
81 extras_require['complete'] = sorted(set(sum(extras_require.values(), [])))
82 
83 
84 setup(
85     extras_require=extras_require,
86     use_scm_version=lambda: {'local_scheme': lambda version: ''},
87 )
88
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -38,8 +38,8 @@
             'pytest-console-scripts',
             'pytest-mpl',
             'pydocstyle',
-            'papermill~=2.0',
-            'nteract-scrapbook~=0.2',
+            'papermill~=2.3.4',
+            'scrapbook~=0.5.0',
             'jupyter',
             'graphviz',
         ]

{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -38,8 +38,8 @@\n             'pytest-console-scripts',\n             'pytest-mpl',\n             'pydocstyle',\n-            'papermill~=2.0',\n-            'nteract-scrapbook~=0.2',\n+            'papermill~=2.3.4',\n+            'scrapbook~=0.5.0',\n             'jupyter',\n             'graphviz',\n         ]\n", "issue": "Update `test` dependency from `nteract-scrapbook` to `scrapbook`\n### Summary\n\nRunning the notebook tests generates the warning\r\n\r\n```pytb\r\nwarnings.warn(\"'nteract-scrapbook' package has been renamed to `scrapbook`. No new releases are going out for this old package name.\", FutureWarning)\r\n```\r\n\r\nas [`nteract-scrapbook`](https://pypi.org/project/nteract-scrapbook/) is now [`scrapbook`](https://pypi.org/project/scrapbook/). All that needs to be done is to change the name used in `steup.py` for the `test` extra:\r\n\r\nhttps://github.com/scikit-hep/pyhf/blob/29bc6daed55b40711fabd9b22d3e76f9ee15657d/setup.py#L42\n\n### Additional Information\n\n_No response_\n\n### Code of Conduct\n\n- [X] I agree to follow the Code of Conduct\n", "before_files": [{"content": "from setuptools import setup\n\nextras_require = {\n    'shellcomplete': ['click_completion'],\n    'tensorflow': [\n        'tensorflow>=2.3.1',  # c.f. https://github.com/tensorflow/tensorflow/pull/40789\n        'tensorflow-probability>=0.11.0',  # c.f. PR #1657\n    ],\n    'torch': ['torch>=1.10.0'],  # c.f. PR #1657\n    'jax': ['jax>=0.2.10', 'jaxlib>=0.1.60,!=0.1.68'],  # c.f. Issue 1501\n    'xmlio': ['uproot>=4.1.1'],  # c.f. PR #1567\n    'minuit': ['iminuit>=2.4.0'],  # c.f. PR #1306\n}\nextras_require['backends'] = sorted(\n    set(\n        extras_require['tensorflow']\n        + extras_require['torch']\n        + extras_require['jax']\n        + extras_require['minuit']\n    )\n)\nextras_require['contrib'] = sorted({'matplotlib', 'requests'})\nextras_require['lint'] = sorted({'flake8', 'black>=22.1.0'})\n\nextras_require['test'] = sorted(\n    set(\n        extras_require['backends']\n        + extras_require['xmlio']\n        + extras_require['contrib']\n        + extras_require['shellcomplete']\n        + [\n            'scikit-hep-testdata>=0.4.11',\n            'pytest>=6.0',\n            'pytest-cov>=2.5.1',\n            'pytest-mock',\n            'requests-mock>=1.9.0',\n            'pytest-benchmark[histogram]',\n            'pytest-console-scripts',\n            'pytest-mpl',\n            'pydocstyle',\n            'papermill~=2.0',\n            'nteract-scrapbook~=0.2',\n            'jupyter',\n            'graphviz',\n        ]\n    )\n)\nextras_require['docs'] = sorted(\n    set(\n        extras_require['xmlio']\n        + extras_require['contrib']\n        + [\n            'sphinx>=4.0.0',\n            'sphinxcontrib-bibtex~=2.1',\n            'sphinx-click',\n            'sphinx_rtd_theme',\n            'nbsphinx!=0.8.8',  # c.f. https://github.com/spatialaudio/nbsphinx/issues/620\n            'ipywidgets',\n            'sphinx-issues',\n            'sphinx-copybutton>=0.3.2',\n            'sphinx-togglebutton>=0.3.0',\n        ]\n    )\n)\nextras_require['develop'] = sorted(\n    set(\n        extras_require['docs']\n        + extras_require['lint']\n        + extras_require['test']\n        + [\n            'nbdime',\n            'tbump>=6.7.0',\n            'ipython',\n            'pre-commit',\n            'check-manifest',\n            'codemetapy>=0.3.4',\n            'twine',\n        ]\n    )\n)\nextras_require['complete'] = sorted(set(sum(extras_require.values(), [])))\n\n\nsetup(\n    extras_require=extras_require,\n    use_scm_version=lambda: {'local_scheme': lambda version: ''},\n)\n", "path": "setup.py"}], "after_files": [{"content": "from setuptools import setup\n\nextras_require = {\n    'shellcomplete': ['click_completion'],\n    'tensorflow': [\n        'tensorflow>=2.3.1',  # c.f. https://github.com/tensorflow/tensorflow/pull/40789\n        'tensorflow-probability>=0.11.0',  # c.f. PR #1657\n    ],\n    'torch': ['torch>=1.10.0'],  # c.f. PR #1657\n    'jax': ['jax>=0.2.10', 'jaxlib>=0.1.60,!=0.1.68'],  # c.f. Issue 1501\n    'xmlio': ['uproot>=4.1.1'],  # c.f. PR #1567\n    'minuit': ['iminuit>=2.4.0'],  # c.f. PR #1306\n}\nextras_require['backends'] = sorted(\n    set(\n        extras_require['tensorflow']\n        + extras_require['torch']\n        + extras_require['jax']\n        + extras_require['minuit']\n    )\n)\nextras_require['contrib'] = sorted({'matplotlib', 'requests'})\nextras_require['lint'] = sorted({'flake8', 'black>=22.1.0'})\n\nextras_require['test'] = sorted(\n    set(\n        extras_require['backends']\n        + extras_require['xmlio']\n        + extras_require['contrib']\n        + extras_require['shellcomplete']\n        + [\n            'scikit-hep-testdata>=0.4.11',\n            'pytest>=6.0',\n            'pytest-cov>=2.5.1',\n            'pytest-mock',\n            'requests-mock>=1.9.0',\n            'pytest-benchmark[histogram]',\n            'pytest-console-scripts',\n            'pytest-mpl',\n            'pydocstyle',\n            'papermill~=2.3.4',\n            'scrapbook~=0.5.0',\n            'jupyter',\n            'graphviz',\n        ]\n    )\n)\nextras_require['docs'] = sorted(\n    set(\n        extras_require['xmlio']\n        + extras_require['contrib']\n        + [\n            'sphinx>=4.0.0',\n            'sphinxcontrib-bibtex~=2.1',\n            'sphinx-click',\n            'sphinx_rtd_theme',\n            'nbsphinx!=0.8.8',  # c.f. https://github.com/spatialaudio/nbsphinx/issues/620\n            'ipywidgets',\n            'sphinx-issues',\n            'sphinx-copybutton>=0.3.2',\n            'sphinx-togglebutton>=0.3.0',\n        ]\n    )\n)\nextras_require['develop'] = sorted(\n    set(\n        extras_require['docs']\n        + extras_require['lint']\n        + extras_require['test']\n        + [\n            'nbdime',\n            'tbump>=6.7.0',\n            'ipython',\n            'pre-commit',\n            'check-manifest',\n            'codemetapy>=0.3.4',\n            'twine',\n        ]\n    )\n)\nextras_require['complete'] = sorted(set(sum(extras_require.values(), [])))\n\n\nsetup(\n    extras_require=extras_require,\n    use_scm_version=lambda: {'local_scheme': lambda version: ''},\n)\n", "path": "setup.py"}]}