{"id":21469,"library":"ipython-autotime","title":"ipython-autotime","description":"An IPython extension that automatically measures and displays the execution time of every cell. Requires IPython/Jupyter. Version 0.3.2; last release 2024. Minimal and stable.","status":"active","version":"0.3.2","language":"python","source_language":"en","source_url":"https://github.com/cpcloud/ipython-autotime","tags":["ipython","extension","timing","jupyter","autotime"],"install":[{"cmd":"pip install ipython-autotime","lang":"bash","label":"pip"}],"dependencies":[],"imports":[],"quickstart":{"code":"%load_ext autotime\n# After loading, every cell shows execution time automatically\n","lang":"python","description":"Load the extension in IPython or Jupyter notebook. It will start timing all cells."},"warnings":[{"fix":"Ensure you are using IPython, Jupyter notebook, or JupyterLab. Do not run in plain Python interpreter.","message":"Running '%load_ext autotime' in a terminal that doesn't support IPython will fail with ImportError or ModuleNotFoundError.","severity":"gotcha","affected_versions":"all"},{"fix":"If you need to exclude import overhead, move imports outside the timed cell.","message":"Timing includes the time to import modules and run setup inside the cell, not just the main computation.","severity":"gotcha","affected_versions":"all"},{"fix":"For reproducible benchmarks, use %timeit or timeit module instead.","message":"autotime uses time.perf_counter or monotonic clock; wall time may vary due to system load.","severity":"gotcha","affected_versions":"all"},{"fix":"Update to 0.3.0+ or parse the new output format.","message":"Versions before 0.3.0 did not show the 'started' timestamp. If you rely on old output format, format changed.","severity":"deprecated","affected_versions":"< 0.3.0"}],"env_vars":null,"search_vec":"'0.3.2':21 '2024':24 'automat':8 'autotim':3,32 'cell':17 'display':11 'everi':16 'execut':13 'extens':6,29 'ipython':2,5,28 'ipython-autotim':1 'ipython/jupyter':19 'jupyt':31 'last':22 'measur':9 'minim':25 'releas':23 'requir':18 'stabl':27 'time':14,30 'version':20","created_at":"2026-04-27T17:00:03.711158+00:00","updated_at":"2026-04-27T17:00:03.711158+00:00","problems":[{"fix":"Run 'pip install ipython-autotime' and then use '%load_ext autotime' inside IPython/Jupyter.","cause":"Trying to import autotime as a Python module directly, or running outside IPython.","error":"ModuleNotFoundError: No module named 'autotime'"},{"fix":"First run '%load_ext autotime', then '%autotime' can be used (though usually you just load it).","cause":"Forgot to load the extension first, or extension not installed correctly.","error":"UsageError: Line magic function `%autotime` not found."},{"fix":"Update to the latest version: 'pip install --upgrade ipython-autotime'","cause":"Using an older version of ipython-autotime that doesn't support the 'started' argument.","error":"TypeError: enable_autotime() got an unexpected keyword argument 'started'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/cpcloud/ipython-autotime","docs":null,"changelog":null,"pypi":"https://pypi.org/project/ipython-autotime/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-04-27","next_check":"2026-07-26","install_tag":null}}