A question-answer dataset for evaluating factual knowledge about the
Nushell shell. Contains 151 Q&A pairs covering Nushell's features, commands, configuration, data types, closures, pipelines, and version-specific behavior.
1question: What are closures in Nushell and how are they used?
2answer: |
3 Closures are anonymous functions...
1from datasets import load_dataset
2
3ds = load_dataset("json", data_files={"train": "data.jsonl"})
4example = ds["train"][0]
5print(example["question"])
6print(example["answer"])