HF RL Explorer

Task: Save a Python Interactive Session to a Script File

Task: Save a Python Interactive Session to a Script File: a task in Terminal-Lego-15k (Harbor dataset). Create a Python script that programmatically simulates saving an interactive Python session's input history to a file. The solution should capture only the input commands (not stdout output)…

The task

Create a Python script that programmatically simulates saving an interactive Python session's input history to a file. The solution should capture only the input commands (not stdout output) from a Python interactive session and save them as a reusable Python script.

Part of PrimeIntellect/Terminal-Lego-15k.