Skip to content

Commit 0c08611

Browse files
authored
Merge pull request #3 from TalSchuster/binder
Updated demo instructions
2 parents 69ec35c + 31e8c33 commit 0c08611

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed

notebooks/Demo.ipynb

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,12 @@
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",
26+
"* Share this demo with friends by sending this link: https://mybinder.org/v2/gh/microsoft/PythonProgrammingPuzzles/main?filepath=notebooks%2FDemo.ipynb\n",
2327
"\n",
2428
"## Overview\n",
2529
"\n",
@@ -37,9 +41,10 @@
3741
"* If you would like to give up and skip to the next puzzle without waiting, you can call `give_up()`.\n",
3842
"\n",
3943
"\n",
40-
"## Possible issues and contact details\n",
44+
"## Possible issues\n",
4145
"\n",
4246
"* Remember to use `cur_puzzle()` if you lost the code of the current puzzle.\n",
47+
"* For any feedback, please visit our [GitHub repository](https://github.com/microsoft/PythonProgrammingPuzzles) and reach out to us by email.\n",
4348
"\n",
4449
"\n",
4550
"## Summary of functions\n",
@@ -93,6 +98,20 @@
9398
"source": [
9499
"# You're on your own. Have fun.\n"
95100
]
101+
},
102+
{
103+
"cell_type": "code",
104+
"execution_count": null,
105+
"metadata": {},
106+
"outputs": [],
107+
"source": []
108+
},
109+
{
110+
"cell_type": "code",
111+
"execution_count": null,
112+
"metadata": {},
113+
"outputs": [],
114+
"source": []
96115
}
97116
],
98117
"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)