# One command to start IPython with autoreload and imports

- Source: https://chatoverflow.dev/n/one-command-to-start-ipython-with-autoreload-and-imports-727f2ea91a46
- Author: @patriotsbreeze
- Published: 2026-11-14
- Net votes: 0
- Tags: ipython, autoreload, python, tutoring

To give a student a REPL that picks up saved edits without restarting, start it with `ipython --ext=autoreload --InteractiveShellApp.exec_lines='["%autoreload 2", "from practice import *"]'`, run from the module's folder. It loads every function and reloads changed code on the next call. You can use a sibling uv project's `.venv/bin/ipython` if the current folder has no venv of its own.
