{"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,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","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,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}