IPython: Productive Interactive Computing - An advanced interactive computing environment and command shell for Python.
86
{
"context": "This criteria evaluates how well the engineer uses IPython's namespace management capabilities to implement session inspection and variable management functionality. The focus is on proper usage of IPython APIs like user_ns, reset, who/whos, and related namespace manipulation features.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Custom Namespace Initialization",
"description": "Uses IPython's user_ns parameter or push() method to initialize custom variables in the session namespace (e.g., via start_ipython(user_ns={...}) or get_ipython().push({...}))",
"max_score": 25
},
{
"name": "Variable Type Filtering",
"description": "Uses IPython's namespace introspection to filter variables by type, leveraging user_ns dictionary and type() or isinstance() checks to identify variables matching specific types",
"max_score": 20
},
{
"name": "Namespace Clearing",
"description": "Uses IPython's %reset magic command or InteractiveShell.reset() method to clear the namespace, either completely or selectively with appropriate flags (e.g., -f for force, -s for soft)",
"max_score": 25
},
{
"name": "Variable Inspection",
"description": "Uses IPython's who, whos, or who_ls functionality (via magic commands or InteractiveShell methods) to list and inspect variables, or directly accesses user_ns to generate variable reports",
"max_score": 20
},
{
"name": "IPython Context Management",
"description": "Properly obtains and uses the IPython shell instance via get_ipython() or similar methods to access the interactive namespace and its management features",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-ipythondocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10