Skip to content

Commit ba048f8

Browse files
committed
updated instructions
1 parent 7219b9a commit ba048f8

File tree

2 files changed

+25
-5
lines changed

2 files changed

+25
-5
lines changed

notebooks/Demo.ipynb

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@
1818
"source": [
1919
"# Instructions\n",
2020
"\n",
21-
"* This notebook is a demo simulating the study used for the [Programming Puzzles](https://arxiv.org/abs/2106.05784) paper (with some modifications to run locally).\n",
22-
"* Visit our repository to explore the full dataset and contribute new puzzles: https://github.com/microsoft/PythonProgrammingPuzzles \n",
21+
"* This [Jupyter](https://jupyter.org/) notebook is a demo simulating the study used for the [**Programming Puzzles**](https://arxiv.org/abs/2106.05784) paper (with some modifications to run locally).\n",
22+
"* You can reuse the same notebook cells to solve all puzzles (run cell with Ctrl+Enter), or open new cells as you advance (Shift+Enter).\n",
23+
"\n",
24+
"\n",
25+
"* **Visit our repository** to explore the full dataset and **contribute your own new puzzles**: https://github.com/microsoft/PythonProgrammingPuzzles.\n",
2326
"\n",
2427
"## Overview\n",
2528
"\n",
@@ -37,9 +40,10 @@
3740
"* If you would like to give up and skip to the next puzzle without waiting, you can call `give_up()`.\n",
3841
"\n",
3942
"\n",
40-
"## Possible issues and contact details\n",
43+
"## Possible issues\n",
4144
"\n",
4245
"* Remember to use `cur_puzzle()` if you lost the code of the current puzzle.\n",
46+
"* For any feedback, please visit our [GitHub repository](https://github.com/microsoft/PythonProgrammingPuzzles) and reach out to us by email.\n",
4347
"\n",
4448
"\n",
4549
"## Summary of functions\n",
@@ -93,6 +97,20 @@
9397
"source": [
9498
"# You're on your own. Have fun.\n"
9599
]
100+
},
101+
{
102+
"cell_type": "code",
103+
"execution_count": null,
104+
"metadata": {},
105+
"outputs": [],
106+
"source": []
107+
},
108+
{
109+
"cell_type": "code",
110+
"execution_count": null,
111+
"metadata": {},
112+
"outputs": [],
113+
"source": []
96114
}
97115
],
98116
"metadata": {

notebooks/demo/demo.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,10 @@ def reset_widgets(): # close existing widgets
241241
def print_solving_times():
242242
print("=" * 10)
243243
print('Check our "Programming Puzzles" paper (section 5.1) to see how difficult GPT-3 and others found each puzzle to be: https://arxiv.org/abs/2106.05784')
244+
print()
245+
print('Visit our GitHub repository to explore the full dataset and contribute your own puzzles: https://github.com/microsoft/PythonProgrammingPuzzles')
244246
print("=" * 10)
245-
print("Your solving times:")
247+
print("Your solving times (minutes:seconds):")
246248
for i, puz in enumerate(state.puzzles):
247249
if i < 3:
248250
# Warmup.
@@ -254,7 +256,7 @@ def print_solving_times():
254256
if puz.solve_time:
255257
elapsed = puz.solve_time - puz.start_time
256258
time_str = time.strftime("%M:%S", time.gmtime(elapsed))
257-
print(f"Puzzle {puz.num - 2}: {time_str} seconds")
259+
print(f"Puzzle {puz.num - 2}: {time_str}")
258260
else:
259261
print(f"Puzzle {puz.num - 2}: Unsolved")
260262

0 commit comments

Comments
 (0)