tessl install tessl/pypi-ipython@9.5.0IPython: Productive Interactive Computing - An advanced interactive computing environment and command shell for Python.
Agent Success
Agent success rate when using this tile
86%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.09x
Baseline
Agent success rate without this tile
79%
A utility tool that provides comprehensive namespace management and variable inspection capabilities for IPython sessions.
Create an IPython session with a predefined set of variables that should be available immediately upon session start.
x=10, y=20, and name="test" makes these variables immediately accessible @testInspect and filter the current namespace to show only variables of specific types.
a=5, b="hello", and c=3.14 returns only a and excludes b and c @testx=10, y="world", and z="python" returns only y and z @testRemove variables from the current namespace based on specific criteria without restarting the session.
a=1, b=2, c=3 and clearing only variables matching pattern a and b, only c remains @testCreate a detailed report of all variables in the current namespace including their types, values, and memory information.
count=42 and message="hello" includes variable names, types (int, str), and values @test@generates
"""IPython Session Inspector - Namespace management utilities"""
def create_session_with_namespace(variables: dict) -> None:
"""
Create an IPython session with a custom initial namespace.
Args:
variables: Dictionary of variable names to values to initialize in the session
"""
pass
def list_variables_by_type(type_name: str) -> list:
"""
List all variables in the current namespace of a specific type.
Args:
type_name: The type to filter by (e.g., 'int', 'str', 'list')
Returns:
List of variable names matching the specified type
"""
pass
def clear_namespace(keep_pattern: str = None) -> None:
"""
Clear variables from the current namespace.
Args:
keep_pattern: Optional pattern of variable names to keep (e.g., 'a|b' keeps variables a and b)
If None, clears all user-defined variables
"""
pass
def generate_variable_report() -> dict:
"""
Generate a detailed report of all variables in the current namespace.
Returns:
Dictionary with variable names as keys and dictionaries containing 'type' and 'value' as values
"""
passProvides interactive computing and namespace management capabilities.
@satisfied-by