Skip to content

Commit ba655df

Browse files
committed
collect OS + version repro_template.ipynb, fix link to open new issue by adding &labels=bug&template=bug_report.yaml
as suggested in #3537 (comment)
1 parent 4b2171c commit ba655df

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

.devcontainer/repro_template.ipynb

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,36 +16,27 @@
1616
"cell_type": "code",
1717
"execution_count": null,
1818
"metadata": {},
19-
"outputs": [
20-
{
21-
"name": "stdout",
22-
"output_type": "stream",
23-
"text": [
24-
"date: 2024-01-08\n",
25-
"Python version: 3.11.6\n",
26-
"pymatgen version: 2023.11.12\n",
27-
"pymatgen version: 2023.11.12\n"
28-
]
29-
}
30-
],
19+
"outputs": [],
3120
"source": [
3221
"# Collect Python version, pymatgen version and current date\n",
3322
"from __future__ import annotations\n",
3423
"\n",
24+
"import platform\n",
3525
"import sys\n",
3626
"from datetime import datetime\n",
3727
"from importlib.metadata import version\n",
3828
"\n",
3929
"print(f\"date: {datetime.today():%Y-%m-%d}\")\n",
4030
"print(f\"Python version: {sys.version.split()[0]}\")\n",
41-
"print(f\"pymatgen version: {version('pymatgen')}\")"
31+
"print(f\"pymatgen version: {version('pymatgen')}\")\n",
32+
"print(f\"OS: {platform.system()} {platform.release()}\")"
4233
]
4334
},
4435
{
4536
"cell_type": "markdown",
4637
"metadata": {},
4738
"source": [
48-
"## Then, your code to reproduce issue goes below\n"
39+
"## Code to reproduce issue goes below\n"
4940
]
5041
},
5142
{
@@ -65,7 +56,7 @@
6556
"cell_type": "markdown",
6657
"metadata": {},
6758
"source": [
68-
"## Now share the code and outputs in a [new GitHub issue](https://github.com/materialsproject/pymatgen/issues/new)\n"
59+
"### Now share the code and outputs in a [new GitHub issue](https://github.com/materialsproject/pymatgen/issues/new?&labels=bug&template=bug_report.yaml)\n"
6960
]
7061
}
7162
],

0 commit comments

Comments
 (0)