harbor run -t openthoughts/tasktrove-exp-rpt-curriculum-easy-curriculum-easy-0384harbor download openthoughts/tasktrove-exp-rpt-curriculum-easy-curriculum-easy-0384Difficulty: Easy
Goal
What to implement
Notes and guidance
Where the code goes
Skeleton (optional starter)
def get_ipython(): """ Return the active IPython InteractiveShell instance.
This function delegates to the real IPython package's get_ipython() when available.
If there is no active IPython instance, raise RuntimeError("No active IPython instance found").
"""
try:
from IPython import get_ipython as _real_get_ipython # real IPython delegate
ip = _real_get_ipython()
except Exception:
ip = None
if ip is None:
raise RuntimeError("No active IPython instance found")
return ip
all = ["get_ipython"]
Acceptance criteria (easy version)